-
-
Save turker0/81a6b9d8ac4915799a082cb3ac0724c8 to your computer and use it in GitHub Desktop.
Update Master Branch & Delete Closed Local Branches
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
git checkout master | |
git remote update origin -p | |
git pull origin master | |
git fetch -p && for branch in $(git branch -vv | grep ': gone]' | awk '{print $1}'); do git branch -D $branch; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment