TeamCity Github问题

viv*_*dia 2 git teamcity github

当我试图在teamcity的根项目中创建git repo的VCS根目录时.它给我一个关于测试连接的奇怪错误.错误说

Cannot find revision of the default branch 'master' of vcs root "jetbrains.git"
{instance id=30, parent internal id=-1, parent id=dummy_jetbrains.git,
description: <my git repo URL>
Run Code Online (Sandbox Code Playgroud)

测试git repo conn时出错

这个错误让我疯了,我无法解决这个问题.我可以使用git cmd在cmd行中以通常的方式克隆并推送对我的repo的更改.

我的git repo是github上的公共回购,我使用master作为默认分支.

我需要在我的github设置中做些什么吗?

lau*_*ura 6

我没有足够的观点把它写成评论,但这些是我认为你应该检查的东西:

Git的路径:此框在您的VCS根配置中为空,因此Teamcity默认为TEAMCITY_GIT_PATH.您是否尝试过显式设置到构建代理程序的git安装目录?

URL:您是否为github指定了https URL?https://github.com/yourname/repo.git

你刚刚在Github上创建了存储库吗?您还需要确保遥控器上存在主分支.

最后,您可以查看TeamCity服务器日志.这将为您提供有关无法连接的详细信息.