Created
October 3, 2016 13:17
-
-
Save tennisonchan/784f5c709561eb15c7b75e814a581423 to your computer and use it in GitHub Desktop.
Delete merged branches from local on #git
This file contains hidden or 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 | |
git branch --merged | grep -v '\*\|master\|develop' | xargs -n 1 git branch -d | |
git remote prune origin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment