描述了类似的问题here https://stackoverflow.com/q/20718193/2313806然而,我的症状有点不同,所有步骤似乎都不起作用。建议也没有here https://stackoverflow.com/q/46999328/2313806 work.
我正在尝试使用 SourceTree 克隆属于我所属的 github 组织的私有存储库。我拥有查看和提交存储库的完全权限,登录时可以在线查看它,并且我可以使用命令行以及 github 桌面应用程序很好地克隆。它仅在 SourceTree 中失败。
此外,这并不是糟糕的凭证或类似的东西,因为我可以使用 SourceTree 和我的 github 凭证来克隆、提交并推送到 github 上的其他非私有存储库。
在“克隆存储库”对话框中,我输入源 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
我也尝试过将我的用户名添加到网址中,如下所示:
https://[email protected] /cdn-cgi/l/email-protection/MyOrgName/reponame.git
但那里也没有运气。