From 8d66826950159ac9a0194ae52121707e8241f30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20W=C3=A5nggren?= Date: Mon, 29 Jan 2018 13:26:57 +0100 Subject: [PATCH] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f4ddd89..281b2e0 100644 --- a/README.md +++ b/README.md @@ -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 ```