Skip to content

Instantly share code, notes, and snippets.

@dep-deprecated
Created July 22, 2016 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dep-deprecated/e91563ddd1c502842e52e994cc09870d to your computer and use it in GitHub Desktop.
Save dep-deprecated/e91563ddd1c502842e52e994cc09870d to your computer and use it in GitHub Desktop.
Shows branches that are redundant to master
git checkout master && git fetch && git merge origin/master && git remote prune origin && echo 'Dead branches:' && git branch -r --merged | grep -v master && git checkout -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment