我有一个叫做颜色调色板的回购( github/3gwebtrain / color-palette.git ),它也有其他分支。
我想克隆一个名为的分支-color 到我的本地系统。但不工作。
我使用的命令是:
git checkout -b github/3gwebtrain/color-palette.git origin / same-color
但这不起作用。得到的错误为:
fatal:不是git仓库(或任何父目录):.git
这里有什么不对?
解决方案git命令:
git clone github/3gwebtrain/color-palette.git -b同色 - - 单支
I have a repo called as 'color-palette ( github/3gwebtrain/color-palette.git) and it has other branches too.
I would like to clone one of the branch called same-color to my local system. But not working.
the command i used is :
git checkout -b github/3gwebtrain/color-palette.git origin/same-color
But this is not working. getting error as :
fatal: Not a git repository (or any of the parent directories): .git
what is wrong here?
解决方案I have done with below single git command:
git clone github/3gwebtrain/color-palette.git -b same-color --single-branch
更多推荐
如何从存储库检出分支
发布评论