2024-04-26 06:03:52 发布
网友
我通常用它来克隆colab中的github repo
哦!git克隆https://github.com/user/repo.git
但假设我想克隆回购的一个特定分支。我试过了
哦!git克隆https://github.com/user/repo/tree/branch.git
但我犯了个错误
致命:未找到存储库“https://github.com/user/repo/tree/branch.git/”
试试这个:
!git clone -b branch_name https://github.com/user/repo.git
将分支名称替换为要克隆的分支的名称
试试这个:
将分支名称替换为要克隆的分支的名称
相关问题 更多 >
编程相关推荐