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

Re: Truncating and cleaning a imported git repositary to make it more usable

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Mar 31, 2008, 06:17 UTC
Message-ID
<47F08202.9030206@viscovery.net>
In-Reply-To
<b2cdc9f30803290647n31bd6db5r4f346360989c2dcd@mail.gmail.com>
Alex Bennee schrieb:
Show 5 quoted lines
> Hmm thats odd. Despite having successfully run the filter my repo is
> still the same size. git-fsck --full shows loads of dangling commits
> but I'm guessing because the repo is packed they don't get dropped. Is
> it possible to repack the whole repo or do you have to manually unpack
> the packs and re-pack?
Yes. Run git repack -a -d -f or create a local clone using the file protocol:
   git clone file://$(pwd)/this that

(If you don't use the file protocol, git clone just hard-links the repository, and you again don't get the reduced size.)

-- Hannes
Previous: Jakub NarebskiNext: Jeff King
Message 11 of 14 in “Truncating and cleaning a imported git repositary to make it more usable”
  1. Alex BenneeMar 28, 2008
  2. Avery PennarunMar 28, 2008
  3. Alex BenneeMar 28, 2008
  4. Alex BenneeMar 28, 2008
  5. Alex BenneeMar 28, 2008
  6. Johannes SixtMar 28, 2008
  7. Documentation: Another example for git-filter-branchAlex Bennee, Mar 28, 2008
  8. Mike HommeyMar 28, 2008
  9. Alex BenneeMar 29, 2008
  10. Jakub NarebskiMar 29, 2008
  11. Johannes SixtMar 31, 2008
  12. Jeff KingMar 28, 2008
  13. Jeff KingMar 28, 2008
  14. Michael HaggertyMar 29, 2008

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.