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

Re: git .pack expansion question

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Jul 12, 2007, 20:58 UTC
Message-ID
<873AE37B-16EA-409B-A488-96DFF2581B43@silverinsanity.com>
In-Reply-To
<5ed683f50707121203q52084b72o106616f1c8710141@mail.gmail.com>
On Jul 12, 2007, at 3:03 PM, Ryan Moszynski wrote:
Show 8 quoted lines
> hopefully this is the right list for this:
>
> am i understanding this right?
>
> if i run the command:
> git-repack
> this creates an .idx and a .pack file that together hold all the files
> and other metadata for my git directory.

You're not understanding it correctly. The .pack files hold all the data from the git repository, but none of the metadata. The .idx file is an index into the pack for speed and can be re-created from the pack itself.

What you're looking for is git-bundle (added just after v1.5.0 it looks like). `git bundle create <file-name> --all` will bundle up all the branches from your repository. It doesn't seem to want to take the tags when I do it that way, but it's definitely the right start.

~~ Brian
Previous: Ryan Moszynski
Message 2 of 2 in “git .pack expansion question”
  1. Ryan MoszynskiJul 12, 2007
  2. Brian GernhardtJul 12, 2007

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.