Improve cleaning up branches merged into master

This commit is contained in:
Ali Servet Donmez 2016-06-07 09:32:41 +02:00
parent 2e647b5ea9
commit aec9d8b1a3
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
"tip": "git checkout -"
}, {
"title": "Remove branches that have already been merged with master",
"tip": "git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
"tip": "git branch --merged master | grep -v '^\\*' | xargs --no-run-if-empty -n 1 git branch -d"
}, {
"title": "List all branches and their upstreams, as well as last commit on branch",
"tip": "git branch -vv"