Skip to content

Instantly share code, notes, and snippets.

@dynamicguy
Created February 22, 2019 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dynamicguy/bdcce2182e577bcacc80c4ddf2aeded5 to your computer and use it in GitHub Desktop.
Save dynamicguy/bdcce2182e577bcacc80c4ddf2aeded5 to your computer and use it in GitHub Desktop.
#!/bin/sh
du -sh .git
git reflog expire --expire=now --all
git gc --prune=now
git gc --aggressive --prune=now
du -sh .git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment