Skip to content

Instantly share code, notes, and snippets.

@ramses-lopez
Last active February 2, 2021 15:24
Show Gist options
  • Save ramses-lopez/7b495248e46ebe6d0c46422c1258e0bc to your computer and use it in GitHub Desktop.
Save ramses-lopez/7b495248e46ebe6d0c46422c1258e0bc to your computer and use it in GitHub Desktop.
Remove merged branchs
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d && git remote prune origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment