TFS 迁移到 Git

貌似现在都在Git了,特写此文,用以记录。倒腾了几个小时,一直卡在权限那里。GitTfs的文档真心很稀烂。

转载请注明出处: TFS 迁移到 Git

1.在TFS服务器上运行cmd,安装Chocolatey

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('http://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin

2.然后安装git-tfs

cinst GitTfs

3.在USER的HOME文件夹创建ProjectName文件夹

4.运行Git Bash,clone TFS上的代码

git tfs clone -u=USER http://tfs:8080/tfs/DefaultCollection $/ProjectName

4.弹出权限验证,输入密码,然后等待Clone完成

5.用Git Extensions打开ProjectName,远程→管理远程档案库,新建一个远程档案库连接到新的Git服务器

6.Push

posted @ 2013-03-11 15:32  ☆磊☆  阅读(5671)  评论(1编辑  收藏  举报