If your migrating from TFS to git, don’t forget to change your source control plugin in Visual Studio. Unfortunately, this isn’t automatic and Visual Studio still tries to use TFS even after you have initialized the folder as a git repo.
You can update your plugin by searching for “source control” in the Quick Launch search box at the top right of VS and selecting “Source Control –> Plug-in Seleciton”:
Then select “Git” from the “Current source control plug-in” drop down:
If you are using Github, you will probably want to install the Github Extension for Visual Studio as well from the Visual Studio Gallery to get integrate VS with the Github Workflow:
Happy migrating!!