From: Michael Haggerty <mhagger@alum.mit.edu>
To: Dan Johnson <computerdruid@gmail.com>
Cc: Aaron Gray <aaronngray.lists@gmail.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: exporting a .git file ?
Date: Mon, 27 Aug 2012 17:40:17 +0200 [thread overview]
Message-ID: <503B94E1.5010803@alum.mit.edu> (raw)
In-Reply-To: <CAPBPrnu1FNbWP+k6Nq5NudBFYZu9njjbcL+oL7m-z5sajuXpBg@mail.gmail.com>
On 08/27/2012 04:45 PM, Dan Johnson wrote:
> 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/
next prev parent reply other threads:[~2012-08-27 15:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-27 14:32 exporting a .git file ? Aaron Gray
2012-08-27 14:35 ` Mihamina Rakotomandimby
2012-08-27 14:39 ` Aaron Gray
2012-08-27 15:09 ` Andreas Schwab
2012-08-27 14:45 ` Dan Johnson
2012-08-27 14:48 ` Aaron Gray
2012-08-27 15:40 ` Michael Haggerty [this message]
2012-08-27 14:53 ` Konstantin Khomoutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=503B94E1.5010803@alum.mit.edu \
--to=mhagger@alum.mit.edu \
--cc=aaronngray.lists@gmail.com \
--cc=computerdruid@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).