Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import a project from Visual Studio Online to GitHub?

I have a couple project in Visual Studio Online (VSO), which I would like to move to my GitHub account. In VSO all projects are not publicly-readable. You must be authenticated using Microsoft Account (MA).

I tried to use the GitHub Importer (https://import.github.com/new) to do that. The importer asked me for read-only credentials to reach out to my project. Unfortunately, it cannot go through authentication event though I provide my MA credentials.

Is there anybody know how to import a project from Visual Studio Online to GitHub? Is it even possible?

like image 623
Oleg Burov Avatar asked Jul 10 '15 03:07

Oleg Burov


People also ask

How do I import a project into GitHub?

In the upper-right corner of any page, click , and then click Import repository. Under "Your old repository's clone URL", type the URL of the project you want to import. Choose your personal account or an organization to own the repository, then type a name for the repository on GitHub.

Can you link Visual Studio to GitHub?

Seamless integration with GitHub Authenticate your GitHub.com or GitHub enterprise account to create a repository, and push your first commits to GitHub, all through Visual Studio.


2 Answers

Okay. I figured it out. You must enable the alternate authentication credentials as described in the following article. After that the importer starts doing its job:

https://web.archive.org/web/20161204015026/https://www.visualstudio.com/en-us/docs/integrate/get-started/auth/overview

like image 102
Oleg Burov Avatar answered Nov 15 '22 11:11

Oleg Burov


If you're importing from Azure DevOps, don't use your account credentials while importing. Instead goto Azure Repos, select your repo which you are importing, then click on Clone and then click on Generate Credentials and then use those credentials in GitHub importer.

like image 33
Sagar Khatri Avatar answered Nov 15 '22 10:11

Sagar Khatri