Last active
June 5, 2017 04:01
-
-
Save VerachadW/8079e8ab8e9324395e7c to your computer and use it in GitHub Desktop.
Git cleanup local branches without when remote is gone.
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
# Original from http://stackoverflow.com/questions/17983068/delete-local-git-branches-after-deleting-them-on-the-remote-repo | |
delete-no-remote = "!git fetch --all -p; git branch -vv | grep \": gone]\" | awk '{ print $1 }' | xargs -n 1 git branch -D" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or you can just install oh-my-zsh and type gbda