Joined August 2016
·
Posted to
Remove all your local git branches but keep master
over 1 year
ago
I use
alias gbDA='git branch | egrep -v "(master|\*)" | xargs git branch -D'
Which deletes everything except master and the branch I am currently in, just in case.
Posted to
Keyboard shortcuts I use every day in tmux
over 1 year
ago
What is love?
It won't, but it will show an unsightly error message because it unsuccessfully tried to delete the current branch.