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

Re: Can I zip a git repo without losing anything?

From
KKKonstantin Khomoutov <kostix+git@007spb.ru>
Date
Nov 26, 2012, 13:04 UTC
Message-ID
<20121126170441.a6c94f108bc57cca8bcfe679@domain007.com>
In-Reply-To
<CAP-uhDcQg0BuEdHDTa6qVqLCeB-LE1GZtEqHgY_j1--XodsDKw@mail.gmail.com>

On Mon, 26 Nov 2012 04:55:10 +0000 Carl Smith <carl.input@gmail.com> wrote:

Show 7 quoted lines
> After suggesting using zip files to move our projects around, I was
> told that you can not zip a git repo without loosing all the history.
> This didn't make sense to me, but two people told me the same thing,
> so I wasn't sure. I think they may have been confusing the zipped file
> you can download from GitHub with a zipped git repo.
> 
> If someone could put me straight on this, I'd really appreciate it.

To amend the already provided answer -- if you need to move repos around using the sneakernet, the tool you should probably use is `git bundle`.

Previous: Andrew Ardill
Message 3 of 3 in “Can I zip a git repo without losing anything?”
  1. Carl SmithNov 26, 2012
  2. Andrew ArdillNov 26, 2012
  3. Konstantin KhomoutovNov 26, 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.