Skip to content

Instantly share code, notes, and snippets.

@andreasbotsikas
Created February 28, 2014 14:43
Show Gist options
  • Save andreasbotsikas/9272320 to your computer and use it in GitHub Desktop.
Save andreasbotsikas/9272320 to your computer and use it in GitHub Desktop.
Clean up deleted objects in git
git -c gc.reflogExpire=0 -c gc.reflogExpireUnreachable=0 \
-c gc.rerereresolved=0 -c gc.rerereunresolved=0 \
-c gc.pruneExpire=now gc "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment