# 先从远程git clone
git clone "仓库地址"
# 切换到代码根目录 执行
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
Git从远程仓库获取所有分支
最新推荐文章于 2023-07-19 09:35:22 发布