Last active
May 9, 2020 11:22
-
-
Save skounis/f900870eabc3fb556d07be92713cb72a to your computer and use it in GitHub Desktop.
Git prune local branches
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
git fetch origin --prune | |
git checkout master | |
git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment