TeamCity Github one project works, the other does not

Both vcs roots show success when testing the connection, but one always errors on:

git fetch command failed

  • HEAD~ for a merge commit
  • How to handle git bisect with external code causing failure
  • gitlab SSH key project cloning issue
  • Can't delete local git branch
  • Where to place Git repository
  • How do I do a pristine checkout with git?
  • I did notice that with the project that fails, when I do git bash, I must do git pull origin master instead of just git pull. I made sure both config files under the .git directories are identical (except for the url, of course). I am new to git…


  • git credential helper - update password
  • Jenkins Poll SCM (Git) on Windows master / Build on Linux slave
  • git workflow, create a local branch delete and recreate again
  • Can the bin folder in Android be ignored from version control?
  • GIT: How can I do a pull request when I've already commited to my master branch?
  • How to add submodule files to a Github release?
  • 2 Solutions collect form web for “TeamCity Github one project works, the other does not”

    I’m not familiar with TeamCity but if this turns out to be a git problem, you might want to try the following:

    • Run git remote -v and make sure the URLs are correct.
    • Run git branch -vv and verify the branches have valid upstreams, e.g. [origin/master].
    • Verify permissions and ownership of all files and directories under .git, both locally and remotely. I remember having fetch issues caused by bad ownership but I’ll admit this looks unlikely in your case.

    If that doesn’t help, see if you can give us more details, like extra error logs around the “‘git fetch’ command failed” message.

    It seems like you set origin in the branch field of VCS root settings, so TeamCity tries to fetch branch refs/heads/origin which doesn’t exist. Try to set master there.

    Git Baby is a git and github fan, let's start git clone.