Migrating a project from GitHub to Visual Studio Online

How to move an existing project from GitHub to Visual Studio Online and save the change history? And (if possible) avoiding the command line .: $

Actually, I tried using the command line indicated in the blog post, but could not. (git remote add https: github.com/xxx/xxx/xxx.git, and he says: set up the remote as a mirror to push or pull.)

(By the way, is it possible to synchronize the same project with GitHub and the visual studio online?)

Thank.

+4
source share
1 answer

Yes, this is a git repo. git locally downloads the complete repo, and you can push it to another remote.

A git repo . . ref on remotes .

vsonline , , git . . ( github). vsonline, , ( , ).

- (proj == repo):

https://{acctname}.visualstudio.com/DefaultCollection/_git/{projname}

, :

https://{acctname}.visualstudio.com/DefaultCollection/{projname}/_git/{reponame}

:

git remote add vsonline {urlHere}

vsonline, git push {remoteName} {branch}

git push vsonline master

. .

vsonline , ( )

+10

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


All Articles