Skip to content

Instantly share code, notes, and snippets.

@alekseykorzun
Created March 31, 2014 18:03
Show Gist options
  • Save alekseykorzun/9898360 to your computer and use it in GitHub Desktop.
Save alekseykorzun/9898360 to your computer and use it in GitHub Desktop.
Delete local/remove git branches
; Upstream
git branch | grep -v "master" | xargs git push origin --delete
; Local
git branch | grep -v "master" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment