I have created a new project in Visual Studio Version 16.7.5. Then I
• Add this project to git source control
• Push the project to GitHub as a new repository
• Go to repository settings
• Add a new remote (local repository initialised with “git init --bare”)
• Try to push to the new remote -> fails with:
Microsoft.TeamFoundation.Git.Contracts.GitRemoteRefNotFoundException
I also tried pushing to the local repository first (works) and then to github (fails). I have proceded this way in over 60 projects and never had a problem so far. Also, pushing to both repositories works with projects that already exist. Does anyone have an idea how to fix this?