Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrate from tfs to git on visualstudio.com

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?

like image 254
Umair Avatar asked Oct 23 '13 17:10

Umair


2 Answers

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
like image 78
Umair Avatar answered Oct 12 '22 11:10

Umair


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.

like image 40
Edward Thomson Avatar answered Oct 12 '22 11:10

Edward Thomson