Re: exporting a .git file ?
- From
Michael Haggerty <mhagger@alum.mit.edu>
- Date
- Aug 27, 2012, 15:40 UTC
- Message-ID
- <503B94E1.5010803@alum.mit.edu>
- In-Reply-To
- <CAPBPrnu1FNbWP+k6Nq5NudBFYZu9njjbcL+oL7m-z5sajuXpBg@mail.gmail.com>
On 08/27/2012 04:45 PM, Dan Johnson wrote:
Show 7 quoted lines
> On Mon, Aug 27, 2012 at 10:32 AM, Aaron Gray <aaronngray.lists@gmail.com> wrote: >> Hi, >> >> Is there anyway to get my git repository as a single file ? > > You're probably looking for the git bundle command (see git bundle > --help), but it's possible you might just want to use tar.
Please note that a "git bundle" will contain the contents of the repository (commits, log messages, etc) but not the local configuration like .git/config, .git/info/*, nor some other information like the reflogs (history of old values of references). This is probably what you want.
A "tar" of the .git directory, by contrast, would include this local information unless you exclude it explicitly.
Michael
-- Michael Haggerty mhagger@alum.mit.edu http://softwareswirl.blogspot.com/