Skip to content

Instantly share code, notes, and snippets.

@SRombauts

SRombauts/git-optimize.sh

Last active Feb 22, 2019
Embed
What would you like to do?
git-optimize
#!/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