Skip to content

Instantly share code, notes, and snippets.

@rohitpaulk
Created July 8, 2017 14:02
Show Gist options
  • Save rohitpaulk/45a391e60c707ed6abcf987c976fa94d to your computer and use it in GitHub Desktop.
Save rohitpaulk/45a391e60c707ed6abcf987c976fa94d to your computer and use it in GitHub Desktop.
Delete old merged git branches
git branch --merged | egrep -v "(^\*|master)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment