git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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/
Previous: Aaron GrayNext: Konstantin Khomoutov
Message 7 of 8 in “exporting a .git file ?”
  1. Aaron GrayAug 27, 2012
  2. Mihamina RakotomandimbyAug 27, 2012
  3. Aaron GrayAug 27, 2012
  4. Andreas SchwabAug 27, 2012
  5. Dan JohnsonAug 27, 2012
  6. Aaron GrayAug 27, 2012
  7. Michael HaggertyAug 27, 2012
  8. Konstantin KhomoutovAug 27, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.