dotfiles/common/users/homeModules/scripts/git_fetchAll.sh

3 lines
174 B
Bash
Raw Normal View History

2024-11-26 17:01:58 -05:00
git branch -r | grep -v '\->' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all