Skip to content

Instantly share code, notes, and snippets.

@pierophp
Last active April 18, 2016 16:48
Show Gist options
  • Save pierophp/004a28f09e98a5aa71f7272e2632fd27 to your computer and use it in GitHub Desktop.
Save pierophp/004a28f09e98a5aa71f7272e2632fd27 to your computer and use it in GitHub Desktop.
Apaga os branchs remotos que já esão no master
git branch -a --merged master | grep -v "master" | sed s/'remotes\/origin\/'// | xargs -I {} git push origin :{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment