Skip to content

Instantly share code, notes, and snippets.

@barseghyanartur
Created February 10, 2022 11:24
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 barseghyanartur/27a2020337968e66a33543b5d4ba4a91 to your computer and use it in GitHub Desktop.
Save barseghyanartur/27a2020337968e66a33543b5d4ba4a91 to your computer and use it in GitHub Desktop.
Git remove all remote branches
git branch -r | sed -r 's/origin\///g' | xargs -I {} git push origin :{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment