Migrate from tfs to git on visualstudio.com

2019-01-31 09:35发布

I have a remote repository on visualstudio.com (a free account) but its on tfs, and I want to move it to git for visualstudio.com

Has anyone tried this yet?

I found this tutorial:

http://gitstack.com/how-to-migrate-from-tfs-to-git/

But in that there is a command git tfs clone http://tfs:8080/tfs/DefaultCollection $/TeamProject/git_folder which copies from tfs to another folder and converts to git.

How can I create a separate (git) folder in remote visualstudio.com server?

Also when doing this will it ask for my Windows Live id to authenticate or is there any command-line command?

2条回答
戒情不戒烟
2楼-- · 2019-01-31 09:50

If you use the Git Credential Manager for Windows (which is included in recent versions of Git for Windows), then it will prompt you to login to Visual Studio Team Services and set up authentication for you. You do not need to manually set up alternate authentication tokens.

To use git (without the Git Credential Manager), git-tfs or git-tf, you'll need to set up Alternate Credentials for your Team Foundation Service account:

  1. Click on your name in the upper right of any TFS web page
  2. Select the "Credentials" tab
  3. Select "Enable Alternate Credentials"
  4. Enter a new username and password combination

You can then use this username/password combination for authentication from command-line applications.

查看更多
Luminary・发光体
3楼-- · 2019-01-31 10:05

Got it working, correct command is to use https without project name after DefaultCollection here for example:

git-tfs clone --username=mumair85 --password=xxxx https://mumair85.visualstudio.com/DefaultCollection $/uGen
查看更多
登录 后发表回答