How to add an existing solution for GitHub from Visual Studio 2017?

I want to add my existing solution to Github, and I have watched many youtube videos. But all of them only showed me about creating new projects. How to add an existing project to Github? In Visual Studio 2017 Community Edition, there is no File-> Add to source control!

+6
source share
3 answers

2. Select a file | Add to source control

Does not exist in the VS 2017 community.

+4
source

You can achieve this by following these steps:

1.Open the solution in Visual Studio 2017 2.Select File | Add to Source Control 3.Select the Microsoft Git Provider 

This creates a local GIT repository

 1.Browse to GitHub 2.Create a new repository DO NOT SELECT Initialize this repository with a README 

This creates an empty repository without branching the wizard.

 1.Once created open the repository and copy the URL (it on the right of the screen in the current version) 2.Go back to Visual Studio Make sure you have the Microsoft Git Provider selected under Tools/Options/Source Control/Plug-in Selection 3.Open Team Explorer 4.Select Home | Unsynced Commits 5.Enter the GitHub URL into the yellow box (use HTTPS URL, not the default shown SSH one) 6.Click Publish 7.Select Home | Changes 8.Add a Commit comment 9.Select Commit and Push from the drop down 

Hope this helps, your solution is now on Github

+12
source
+1
source

Source: https://habr.com/ru/post/1014953/


All Articles