如何使用 Github Desktop 克隆非 github 托管存储库

Joh*_*ore 6 git github gogs

如何使用Github Desktop克隆非 github 存储库?

https://local-git-service/some-user/some-repo.git

如果我已经初始化了现有存储库,我可以使用 Github Desktop 添加它。但是如何在不使用 git 命令的情况下克隆它呢?

我们的团队使用内部Gogs站点来管理我们的存储库,我们希望允许用户在不使用命令行工具的情况下克隆存储库。

Joh*_*ore 3

对于苹果机

Github Desktop支持 github-mac://openRepo URL 格式/协议。

例如:github-mac://openRepo/http://somegitservice.local/some-user/my-repo

如果您在浏览器的地址栏中输入具有该格式的链接,它应该提示您使用 Github Desktop 打开它。如果您没有安装 Github Desktop,这将不起作用。

对于 Windows

我不知道!在 Github 提供类似的解决方案之前,必须使用命令行或其他工具将存储库克隆到桌面。将其克隆到桌面后,您可以使用窗口左上角的+>按钮将其添加到 Github Desktop。Add