Skip to content

Instantly share code, notes, and snippets.

@floodkoff
Created November 17, 2014 09:23
Show Gist options
  • Save floodkoff/ec638a273345431385f1 to your computer and use it in GitHub Desktop.
Save floodkoff/ec638a273345431385f1 to your computer and use it in GitHub Desktop.
Force git to get rid of all unreachable commits
git reflog expire --expire-unreachable=now --all && git gc --prune=now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment