Git to TFS Source Control Migration

前端 未结 5 1378
粉色の甜心
粉色の甜心 2021-02-04 06:08

I\'d like to see how TFS will work for my command. So I\'d like to move our current GIT repository to TFS database. We\'ve used GIT for it\'s prevailed branching support so I\'d

5条回答
  •  独厮守ぢ
    2021-02-04 06:29

    This is an old question, and maybe no one is looking for this anymore, but it is a lot easier now.

    1. Create a Team Project in TFS with Git as the source code control

    2. Grab the Git url for the project. It will look something like ... https://YOURPROJECTS.visualstudio.com/DefaultCollection/_git/PROJECTNAME

    3. Drop into the command like and execute.

      git remote add origin https://YOURPROJECTS.visualstudio.com/DefaultCollection/_git/PROJECTNAME

      git push -u origin --all

    Should be all you need.

提交回复
热议问题