Skip to content

Instantly share code, notes, and snippets.

@felixkosmalla
felixkosmalla / git-pull-all
Created May 16, 2022 08:50 — forked from grimzy/git-pull-all
Git pull all remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all