• Wincent
    Open
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

git-repack cheatsheetEdit

Created 3/11/2013, updated 1/10/2025

Expensive but effective repacking:

$ git repack -a -d -f --depth=250 --window=250

Probably a bad idea:

$ git gc --aggressive

Source: http://metalinguist.wordpress.com/2007/12/06/the-woes-of-git-gc-aggressive-and-how-git-deltas-work/

  • git
  • wiki
  • cheatsheet
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell using React, Relay and GraphQL (with help from Git, Redis and Neovim).