Last active
November 26, 2015 03:53
-
-
Save andytlr/65c90409f354f5cafad7 to your computer and use it in GitHub Desktop.
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
# List merged branches | |
git branch --merged | |
# Delete all merged branches. | |
git branch --merged | grep -v "\*" | grep -v master | xargs -n 1 git branch -d | |
# Restage last commit. E.g. Whoops, just committed to master. | |
git reset --soft HEAD~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment