Carefulness needed when working with the official GitHub extension in Visual Studio 2015
Posted: (EET/GMT+2)
Visual Studio 2015 now contains great support for Git version control and the GitHub open-source code sharing and collaboration hub. However, I've noticed that you need to be pretty careful when working with the official GitHub extension especially when creating new projects and new repositories.
However, there's one specific thing related to this extension you need to be aware of: if you create a new local Git repository using the Visual Studio's Team Explorer window, and then proceed to create a new project (such as an ASP.NET web application), Visual Studio does not default to the Git repository folder, but rather the previous folder where you've created a new project the last time.
This happens even though your Git repository is properly selected and active. If you happen to create your new project by accident into a different folder than your Git repo, you need to manually move the files into the folder where your Git repo is.
When you remember to correctly set the folder already when creating your project, the GitHub extension work very nicely.