From b26de99ab8de4ed3768d6fe0854471d72e6a90b8 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 21 May 2022 16:35:52 -0400 Subject: [PATCH] Fix push-all and fetch-all git commands --- private_dot_config/git/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/private_dot_config/git/config b/private_dot_config/git/config index 8045438..57daf58 100644 --- a/private_dot_config/git/config +++ b/private_dot_config/git/config @@ -8,9 +8,9 @@ autocrlf = input [alias] # pushes to all remotes (currently lacking a way to specify ref name, it will push EVERYTHING) - push-all = '!git remote | xargs -L1 git push --all' + push-all = !git remote | xargs -L1 git push --all # fetches all remotes - fetch-all = '!git remote | xargs -L1 git fetch' + fetch-all = !git remote | xargs -L1 git fetch # prettier log command pretty-log = log --decorate --oneline --graph change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f"