What to Do if GitVersion Does Not Recognise Your Main Branch

At the user group site, we use GitVersion to turn our git history into a Semantic Version number. After we switched to main as the default branch, our build failed with this error message: ERROR [****] An unexpected error occurred: System.InvalidOperationException: Could not find a ‘develop’ or ‘master’ branch, neither locally nor remotely. GitVersion did …

Read more

Little Git Tricks: Mark Files as Moved

When you use the File Explorer (or Windows Explorer) to move files around in your repository, Git knows nothing about that action and treats your files as deleted and newly created: We can commit that change, but that makes it impossible to see the history of those files before this commit. We could prevent that …

Read more