From 892544df8e1c1808099af9d9c2908011784f7871 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 4 Nov 2022 15:14:54 +0100 Subject: [PATCH] git: Add fetchall alias Added `git fetchall` (or `gfa`) alias which allows fetching the current branch from all connected remotes simultaneously. May have some unintended side effects when branches diverge, this is untested. --- git/.config/git/config | 1 + git/.config/sh/alias.d/git.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/git/.config/git/config b/git/.config/git/config index d42caec..361923b 100644 --- a/git/.config/git/config +++ b/git/.config/git/config @@ -9,6 +9,7 @@ pushmerge = "push -o merge_request.merge_when_pipeline_succeeds" # see https://docs.gitlab.com/ce/user/project/push_options.html # merge-when-pipeline-succeeds-alias last = "diff HEAD~ HEAD" pushall = "!git remote | xargs -I R git push R" # push to all connected remotes + fetchall = "!git remote | xargs -I R git fetch R" # fetch from all connected remotes [commit] gpgsign = true # sign commits as me diff --git a/git/.config/sh/alias.d/git.sh b/git/.config/sh/alias.d/git.sh index db7df48..7e1b1de 100644 --- a/git/.config/sh/alias.d/git.sh +++ b/git/.config/sh/alias.d/git.sh @@ -47,6 +47,7 @@ alias glog='git log --stat' alias gloog='git log --stat -p' alias gf='git fetch' +alias gfa='git fetchall' alias gl='git pull' alias gpn='git push --dry-run'