Skip to content

Instantly share code, notes, and snippets.

@oligriffiths
Created September 21, 2015 20:08
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 oligriffiths/2fc0767713adf257c11f to your computer and use it in GitHub Desktop.
Save oligriffiths/2fc0767713adf257c11f to your computer and use it in GitHub Desktop.
# Remove remote references that have been deleted
git fetch -p
# Remove local branches that have been merged
git branch --merged | grep -v master | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment