Skip to content

Instantly share code, notes, and snippets.

@sigismund
Created November 18, 2019 14:50
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 sigismund/507a0bb635bae875f174f3a878b46a1e to your computer and use it in GitHub Desktop.
Save sigismund/507a0bb635bae875f174f3a878b46a1e to your computer and use it in GitHub Desktop.
Cleanup of already merged branches. Excludes develop & master branch
git branch -r --merged | grep -v '\\*\\|master\\|develop' | sed 's/origin\///' | xargs -n 1 git push --delete origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment