If you are adding a new solution as a subproject of a bigger repository, it can happen that Visual Studio does not want to add a solution to GIT repository. When you click on “Add to source control” nothing happen.
To workaround this problem you should first commit changes. Open command prompt and navigate to folder with your solution file. Then commit changes.
git commit -m "Added new sample" –a
After this you have to push changes. To do this go to Visual Studio and click on Sync (or push). Alternativelly you can execute push in command prompt:
git push
Posted
Aug 22 2016, 04:20 PM
by
Damir Dobric