Transition from visual studio online to github

I created a project with online visual studio control, but I never synchronized it with the server, I just do local work.

Now I need to add this project to the github repository, so in the github windows client I placed the project and added it, I can see all my previous commits, however when I try to synchronize, I present with a dialog asking for my credentials online.

Does anyone know how I can delete my VS Online account and move the project to Github?

Hooray!

+5
source share
1 answer

Visual Studio seems to be using git for version control, which is consistent with the github client, which sees your version history and makes it much simpler: all you have to do is change the remote link to point to your github repository.

Github has some pretty good instructions on changing the remote here . To summarize the important bits, from the command line, run:

cd <root directory of your local repository> git remote set-url origin https://github.com/USERNAME/REPOSITORY.git git fetch 

Replace USERNAME and REPOSITORY with the appropriate values, and to start the fetch, you should provide your github credentials to confirm that it worked.

+3
source

All Articles