Created
February 27, 2018 13:38
-
-
Save dimrsilva/a17ed089358c68baac33d358af670e9d to your computer and use it in GitHub Desktop.
git-rm-branches.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Remove branches da máquina que já estão mergeadas com a branch atual | |
# Pode trocar `vim` por um editor de preferência | |
git branch --merged >/tmp/merged-branches && vim /tmp/merged-branches && xargs git branch -d </tmp/merged-branches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment