>>>>> "A" == AsherMaximum  <ashermaxi...@gmail.com> writes:

A> I am wondering why you need to have two copies of the website on the
A> server? What would be wrong with setting your directory to point to
A> the main git repository?

You don't need two copies.

Pushing to a repo really only works well when it is a bare repo.  So you
want a bare repo on the server to be the master version of the site, and
a -l -s checkout of that as the live site.  The use of -l and -s options
to git checkout avoids copying .git/objects.  You have one copy of git's
data and one checkout on the server.

That said, if you have the disk space, and especially if you have two or
more platters, using a normal checkout with the bare repo on a different
platter gives you a litte extra redundancy in case of disk or fs failure.

James Cloos <cl...@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6

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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to