From 854cc5b6359c3615296d340cd19dd81f38389e3b Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 17 Jan 2019 19:35:55 +0000 Subject: [PATCH] Prevent attempts to remove branches if there aren't any --- .gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitconfig b/.gitconfig index 222305c..e81cc9e 100644 --- a/.gitconfig +++ b/.gitconfig @@ -20,7 +20,7 @@ lg = !"git lg1" lgd = log -p --decorate history = log --pretty=oneline --abbrev-commit --all --graph --decorate - tidy = !git remote prune origin && git fetch -p && git branch -vv | awk '/: gone]/ {print $1}' | xargs git branch -D + tidy = !git remote prune origin && git fetch -p && git branch -vv | awk '/: gone]/ {print $1}' | xargs -r git branch -D update = !git pull && git tidy st = status ci = commit