我试图使用SourceTree克隆一个属于Github组织的私有repo,我是该组织的一员,有完全的查看和提交权限,在登录时可以在线看到它,而且我可以用命令行或Github桌面应用程序轻松地进行克隆。但在SourceTree中却总是失败。
此外,这并不是错误的凭据或其他任何问题,因为我可以使用我的Github凭据在SourceTree中克隆、提交和推送到其他非私有repo上。
在"Clone a Repository"对话框中,我输入源URL,看起来像这样:
https://github.com/MyOrgName/reponame.git
我将离开该字段,它将填充目标路径和名称字段,但是在对话框底部有一个黄色感叹号,其中包含以下错误信息:
This is not a valid source path / URL
如果我点击错误提示,它会弹出“详细信息”对话框,其中列出了以下内容(由于某种原因重复了两次):remote: Repository not found.
fatal: repository 'https://github.com/MyOrgName/reponame.git/' not found
remote: Repository not found.
fatal: repository 'https://github.com/MyOrgName/reponame.git/' not found
我也尝试过通过将我的用户名添加到URL中,就像这样:
https://myusername@github.com/MyOrgName/reponame.git
不过那里也没什么运气。