从GitHub远程签出分支
我试图用fetch命令远程签出分支,并得到以下错误:什么是正确的语法?HelloWorld2是我的主要分支从GitHub远程签出分支,github,Github,我试图用fetch命令远程签出分支,并得到以下错误:什么是正确的语法?HelloWorld2是我的主要分支 git fetch https://github.com/abc/HelloWorld2/tree/DevBranch fatal:'https://github.com/abc/HelloWorld2/tree/DevBranch' not found 我没有意识到我需要在本地目录中克隆主机 git clone https://github.com/abc/HelloWo
git fetch https://github.com/abc/HelloWorld2/tree/DevBranch
fatal:'https://github.com/abc/HelloWorld2/tree/DevBranch' not found
我没有意识到我需要在本地目录中克隆主机
git clone https://github.com/abc/HelloWorld2.git
然后在我的本地计算机目录中:
cd HelloWorld2
git checkout DevBranch
在您的回购协议中,
git checkout DevBranch
复制了该协议?这是否回答了您的问题?