1
0
mirror of https://github.com/namibia/tips.git synced 2024-12-23 02:28:58 +00:00

Merge pull request #75 from kadikraman/fix-remove-merged-to-master

Remove --no-run-if-empty flag on removing branches that are merged to master
This commit is contained in:
hemanth.hm 2016-06-11 20:13:00 +05:30 committed by GitHub
commit 4668721ea5
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ git checkout -
## Remove branches that have already been merged with master
```sh
git branch --merged master | grep -v '^\*' | xargs --no-run-if-empty -n 1 git branch -d
git branch --merged master | grep -v '^\*' | xargs -n 1 git branch -d
```
## List all branches and their upstreams, as well as last commit on branch

View File

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