Skip to content

Instantly share code, notes, and snippets.

@Neoglyph
Last active March 17, 2020 08:05
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 Neoglyph/c9b0a1e325b8cb970f268edba578495a to your computer and use it in GitHub Desktop.
Save Neoglyph/c9b0a1e325b8cb970f268edba578495a to your computer and use it in GitHub Desktop.
Delete branches already merged into current head
# https://stevenharman.net/git-clean-delete-already-merged-branches
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment