Skip to content

Instantly share code, notes, and snippets.

@dimrsilva
Created February 27, 2018 13:38
Show Gist options
  • Save dimrsilva/a17ed089358c68baac33d358af670e9d to your computer and use it in GitHub Desktop.
Save dimrsilva/a17ed089358c68baac33d358af670e9d to your computer and use it in GitHub Desktop.
git-rm-branches.sh
#!/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