commit e4dcbfe5c7789c64d4a0ded5f15e4fcf711d44a3 parent 3e30d37175790ceb3169f049d4f502e785b843af Author: GeaRSiX <gearsix@tuta.io> Date: Tue, 23 Jun 2020 00:14:13 +0100 added src/git-pull-all Diffstat:
A | src/git-pull-all.sh | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/git-pull-all.sh b/src/git-pull-all.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +# src: https://gist.github.com/grimzy/a1d3aae40412634df29cf86bb74a6f72 +# description: pull all remote branches to the local repo + +git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done +git fetch --all +git pull --all +