On Sun, Nov 01, 2009 at 10:48:46AM -0800, Aljosa Mohorovic wrote:
> 
> project root folder but i'm actually asking is there some technical
> reason why this is wrong and why i just can't clone a repository to
> current folder?

Why are you re-cloning every time?
The git way is to start your deployment from an initial git
checkout.

        git clone git://your/htdocs.git htdocs

Then updates are simply:

        cd htdocs && git pull origin master

Cloning every time isn't very efficient.


Is the initial project folder empty?
If so this'll clone into current the directory.

        git init
        git remote add origin URL
        git fetch origin
        git checkout -t origin/master

This can also be updated with "git pull origin master".

-- 
                David

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to