Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity Github issue

when i am trying to create a VCS root of git repo in my root project in teamcity. It is giving me a weird error on Testing connection. The error says:

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>

error on testing git repo conn

this error is driving me insane and i cannot fix this issue. i can clone and push changes to my repo the usual way in cmd line with git cmd.

my git repo is a public repo on github and I am using master as default branch.

Do I need to do something in my github settings?

like image 456
vivekm.se Avatar asked Oct 16 '25 23:10

vivekm.se


1 Answers

I don't have enough points to write this as a comment, but these are some things that I think you should check:

Path to Git: This box is empty in your VCS root configuration, so Teamcity is defaulting to TEAMCITY_GIT_PATH. Have you tried explicitly setting to the directory of your build agent's git installation?

URL: Are you specifying the https URL for github? https://github.com/yourname/repo.git

Did you just create the repository on Github? You'll also want to make sure that the master branch exists on the remote.

Finally, you can look at the TeamCity server log. This will give you a bit more detail as to why you can't connect.

like image 73
laura Avatar answered Oct 19 '25 12:10

laura