Gitversion

Could not find a 'develop' or 'master' branch, neither locally nor remotely on TeamCity with GitVersion tool.

The message “Could not find a ‘develop’ or ‘master’ branch, neither locally nor remotely.” occurs when you are running GitVersion and TeamCity (or any other CI server) doesn’t do full fetch on build agent. Here’s full log from TeamCity agent: [08:20:14][Step 1/1] INFO [08/01/18 8:20:14:01] Working directory: D:\BuildAgent\work\812fa41891c9d060\Build [08:20:14][Step 1/1] INFO [08/01/18 8:20:14:01] IsDynamicGitRepository: False [08:20:14][Step 1/1] INFO [08/01/18 8:20:14:07] Returning Project Root from DotGitDirectory: D:\BuildAgent\work\812fa41891c9d060\.git - D:\BuildAgent\work\812fa41891c9d060 [08:20:14][Step 1/1] INFO [08/01/18 8:20:14:07] Running on Windows.
Read more