Is it safe to copy the .git directory to a different machine and/or location and start using it from there? Or are there machine and/or location-specific things in the repository? Setting up a copy with git init, git fetch, etc. doesn't copy hooks, etc. so I'd like to just be able to set things up locally and copy the repository to the server. It seems to work, but I wanted to double check.
threads / discuss / 13462
Safe to manually copy git repository?
Subject: Safe to manually copy git repository?
Re: Safe to manually copy git repository?
Hi,
On Sat, May 10, 2008 at 10:57:24AM -0700, skillzero@gmail.com wrote:
> Is it safe to copy the .git directory to a different machine and/or > location and start using it from there?
Yes.
Cheers, Sebastian
-- Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/ Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin