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.
This commit is contained in:
Marty Oehme 2022-11-04 15:14:54 +01:00
parent 27860162b4
commit 892544df8e
Signed by: Marty
GPG key ID: 73BA40D5AFAF49C9
2 changed files with 2 additions and 0 deletions

View file

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

View file

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