Skip to content

Instantly share code, notes, and snippets.

@dimasch
Last active August 15, 2018 16:54
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 dimasch/5fb50595b68a3d1d80bd to your computer and use it in GitHub Desktop.
Save dimasch/5fb50595b68a3d1d80bd to your computer and use it in GitHub Desktop.
Cleanup Old Git Branches
git branch -r --merged | grep -e 'BRANCH_NAME' | sed 's/origin\//:/' | xargs -n 1 git push origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment