Adds --no-color for command for local branch prune (#119)

When using zsh or a gitconfig that adds colors, the command does not work.
Reading branches with `--no-color` fixes the problem.
This commit is contained in:
Joakim Wånggren 2018-01-29 13:26:57 +01:00 committed by Vahid Panjganj
parent 41c9949400
commit 8d66826950

View File

@ -141,7 +141,7 @@ Because of most of the reasons above, we use [Feature-branch-workflow](https://w
```
to remove all branches which are no longer on remote
```sh
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
git fetch -p && for branch in `git branch -vv --no-color | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
```
<a name="writing-good-commit-messages"></a>