Re: how to backup git
- From
- Tobias Sarnowski <sarnowski@new-thoughts.org>
- Date
- May 12, 2008, 06:36 UTC
- Message-ID
- <EC8B6A6F-31FA-498C-92A1-DE2F0645C56F@new-thoughts.org>
- In-Reply-To
- <4827DEF6.1050005@gmail.com>
Hi bill,
Backing up the ".git" directory is all you need. You can also clone it as a bare repository (see git clone --bare).
Afterwards "git checkout" is your friend.
Tobias
Am 12.05.2008 um 08:08 schrieb bill lam <cbill.lam@gmail.com>:
Show 5 quoted lines
> Hello, this should be a simple question. How to backup a git > repository but excluding files that not under versioned? If I cp or > tar or rsync the directory. All non-versioned files are added. > > regards