What to do if VS does not want to add solution to GIT

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

 

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
developers.de is a .Net Community Blog powered by daenet GmbH.