Last active
December 22, 2015 22:19
-
-
Save rafecolton/6539525 to your computer and use it in GitHub Desktop.
git tidy - cleans up your remote and 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
[alias] | |
tidy = "!git remote prune origin 2>/dev/null; echo \"$(git branch -vv | grep origin | tr '[]*?+' ' ')\" | egrep -v \"$(git branch -r | awk '{print $1}')\" | awk '{print $1}' | xargs git branch -d 2>/dev/null" | |
refresh = "!git checkout master && git fetch && git pull --rebase && git tidy" | |
t = "!git tidy" | |
r = "!git refresh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment