📜  git fetch all remote branch - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:11.563000             🧑  作者: Mango

代码示例1
# 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