Git 集成到 RadStudio / Delphi 10

Git Integration in RadStudio / Delphi 10

我在 2012r2 VM 上设置了一个 bitbucket 服务器。

我可以从 Git 命令行成功克隆、推送、提交。

阅读 this blogpost written by Luis Navarro (Embarcadero) 后,我认为这将是一个简单的设置。

但是,每当我尝试克隆项目时,都会收到以下错误消息:

奇怪的是我选择访问 http://MYURL.org/scm/waaad/vcl.git 但它自动更改为 改为 https

此外,当我尝试改用 SSH 时,错误保持不变但显示在 MessageBox 中:

从例如https://github.com/project-jedi/jvcl.git 工作正常。

本地安装了 Git 存储库的人是否遇到过同样的问题?

除了 Embarcadero 的默认实现之外,还有其他 Git 实现吗?

编辑:

根据 Rob Kennedy 的评论,我将 Git-Option 可执行文件更改为:

SSL 错误现已消失,但仍无法克隆,因为:

有什么方法可以阻止它自动将 http 更改为 https? 我认为这就是它找不到存储库的原因。

来自官方文档:

https://confluence.atlassian.com/bitbucketserver/securing-bitbucket-server-with-apache-using-ssl-776640117.html

You can run Bitbucket Server behind a reverse proxy, such as Apache HTTP Server or nginx, that is secured using HTTPS (HTTP over SSL). You should consider doing this, and making secure access mandatory, if usernames, passwords and other proprietary data may be at risk.


我最初的回答(其实也是这么说的):

如果没有更好的解决方案,我会在Git服务器上安装Apache或nginx,并将其配置为反向HTTPS代理。

示例配置:https://serverfault.com/questions/486042/use-apache-as-a-https-to-http-proxy

RAD Studio 应该很高兴地使用 HTTPS。 Apache 服务器通过 HTTP 与 Git 通信。双方都开心:)