Created
July 28, 2016 20:27
-
-
Save paularmstrong/50bd44dbf979f9683d58095b041b8a1e to your computer and use it in GitHub Desktop.
Because sometimes everything you wrote was bad.
This file contains 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
# Completely remove the current branch from a git repo | |
function rm-branch() { | |
branch="$(git branch --no-color | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')" | |
git checkout master | |
git branch -D $branch | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment