📅  最后修改于: 2022-03-11 14:50:11.563000             🧑  作者: Mango
# track all remote branches:
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
# update all local copies of remote branches
git fetch --all
# update all local tracking branches
git pull --all