Remove --no-run-if-empty flag

This commit is contained in:
Kadi Kraman 2016-06-09 09:56:45 +01:00
parent d9a8859604
commit 3bd8fae29b
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ git checkout -
## Remove branches that have already been merged with master ## Remove branches that have already been merged with master
```sh ```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 ## List all branches and their upstreams, as well as last commit on branch

View File

@ -36,7 +36,7 @@
"tip": "git checkout -" "tip": "git checkout -"
}, { }, {
"title": "Remove branches that have already been merged with master", "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", "title": "List all branches and their upstreams, as well as last commit on branch",
"tip": "git branch -vv" "tip": "git branch -vv"