summary refs log tree commit diff
path: root/.config/git
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-11-15 13:07:50 +0100
committerRobert Günzler <r@gnzler.io>2021-11-15 13:07:50 +0100
commit109c7ab63e5981d0b6affb1138d4e6bc4ef6407e (patch)
tree710b59114755b0a018feea10570af7c591e40050 /.config/git
parentde0082649836e741dc2b2ff257465f2130b8fa35 (diff)
git: add alias to push to all remotes
Diffstat (limited to '.config/git')
-rw-r--r--.config/git/config2
1 files changed, 2 insertions, 0 deletions
diff --git a/.config/git/config b/.config/git/config
index 6e5cf1f..0e04d6c 100644
--- a/.config/git/config
+++ b/.config/git/config
@@ -110,6 +110,8 @@
     b = !fzfez git-branches
     l = !fzfez git-log
     t = !fzfez git-tags
+    pushall = "!f() { args=$@; git remote show -n | xargs -I{} sh -c \"set -x;git push {} $args\"; }; f"
+    pushfall = "!f() { args=$@; git remote show -n | xargs -I{} sh -c \"set -x;git pushf {} $args\"; }; f"
 
 [apply]
     # Detect whitespace errors when applying a patch