threads / discuss / 13462

Safe to manually copy git repository?

Subject: Safe to manually copy git repository?

## tl;dr

2 messages between May 10, 2008 and May 12, 2008.

replies: 1people: 2as markdown or json

skillzero@gmail.com· May 10, 2008, 17:57 UTC · lore

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.

Sebastian Harl· May 12, 2008, 12:55 UTC · re: skillzero@gmail.com · lore

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

← back to recent threads