Created
February 21, 2013 12:54
-
-
Save vbajpai/5004553 to your computer and use it in GitHub Desktop.
delete a git branch and all its associated history.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[master] $ git branch -D topic | |
[master] $ git reflog expire --expire=now --all | |
[master] $ git gc --aggressive --prune=now | |
[master] $ git repack -a -d -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment