-
-
Save qa1/41a464588760bb0867cf528157bdf5a4 to your computer and use it in GitHub Desktop.
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
// delete all origin branch that deleted from origin and stay in your local | |
git fetch -p | |
// chekout to main brach to prevent delete it from local | |
git checkout master | |
// delete all local branch | |
git branch | xargs git branch -d | |
// delete all origin branch that don't deleted from origin and stay in your local | |
git branch | xargs git branch -D | |
// now you have master branch in local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment