Skip to content

Instantly share code, notes, and snippets.

View dpmex4527's full-sized avatar

Daniel Perez dpmex4527

  • Austin, TX
View GitHub Profile
@dpmex4527
dpmex4527 / git-bomb.sh
Created April 11, 2017 22:47 — forked from kylemacey/git-bomb.sh
This gist will create a custom git script that will delete any branches that are fully merged into the currently checked out branch (usually run on master)
mkdir -p ~/scripts/git
echo 'git branch --merged | grep -v "\*\|master" | xargs -n 1 git branch -d' > ~/scripts/git/git-bomb
echo 'git remote prune origin' >> ~/scripts/git/git-bomb
chmod +x ~/scripts/git/git-bomb
sudo ln -s ~/scripts/git/git-bomb /usr/bin/git-bomb