Skip to content

Instantly share code, notes, and snippets.

@Leedehai
Last active October 16, 2019 03:33
Show Gist options
  • Save Leedehai/382c1b8a6a6fdc6afbf3d0de57ff8666 to your computer and use it in GitHub Desktop.
Save Leedehai/382c1b8a6a6fdc6afbf3d0de57ff8666 to your computer and use it in GitHub Desktop.
git gc --aggressive --prune=now
git reflog expire --expire=now --expire-unreachable=now --all
git repack -ad # Remove dangling objects from packfiles
git prune # Remove dangling loose objects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment