Skip to content

Instantly share code, notes, and snippets.

@riyaz
Created October 24, 2016 13:37
Show Gist options
  • Save riyaz/afa4a38e694ea275ee5bb41942354cf6 to your computer and use it in GitHub Desktop.
Save riyaz/afa4a38e694ea275ee5bb41942354cf6 to your computer and use it in GitHub Desktop.
Clean the local branches regularly with these alias
alias brclean='git branch --merged | grep -v develop | xargs git branch -d && git remote prune origin'
alias brclean-dry='git branch --merged | grep -v develop'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment