Last active
May 20, 2016 10:52
-
-
Save torunar/787efb8dd06de298e55c to your computer and use it in GitHub Desktop.
git shortands
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
# remove local branches that are removed on remote | |
git fetch --all --prune | |
git branch --merged | grep -v "\*" | grep -Ev "(\*|master|dev|patch|minor)" | xargs -n 1 git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment