1
Fork 0

Fix push-all and fetch-all git commands

This commit is contained in:
Joshua Goins 2022-05-21 16:35:52 -04:00
parent 7772c2dde6
commit b26de99ab8

View file

@ -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"