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>
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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With