Skip to content

Instantly share code, notes, and snippets.

@vjames19
Last active March 2, 2016 17:00
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 vjames19/6e262d378f63cb264c40 to your computer and use it in GitHub Desktop.
Save vjames19/6e262d378f63cb264c40 to your computer and use it in GitHub Desktop.
Git snippets
# Source: https://splice.com/blog/cleaning-git-branches/
git checkout master && git branch --merged | grep -v master | xargs git branch -d
# Source: https://splice.com/blog/cleaning-git-branches/
git checkout master && git branch -r --merged | grep -v master | sed -e 's/origin\//:/' | xargs git push origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment