如何克隆Python中的特定分支,Colab?

2024-04-26 06:03:52 发布

您现在位置:Python中文网/ 问答频道 /正文

我通常用它来克隆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/


Tags: httpsgitgithubcombranchtree错误分支