使用git下载远程所有分支到本地

打开gitbash
输入以下命令即可

在这里插入图片描述

git clone git地址
cd git文件夹
git branch -r | grep -v '->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注