使GitTfs项目迁移工具把tfs的中的项目迁移到git上面去

tfs项目迁移到git(项目没有分支)的示例

D:
cd D:\软件\GitTfs-0.25.1.529\GitTfs-0.25.1.529
git-tfs clone -u hhjjjh -p hhj http://localhost:8080/tfs/oa D:/git/GitRepository/oa
@pause

 

其中

hhjjjh以及hhj为我在tfs上的用户名与密码,http://localhost:8080/tfs/oa 为tfs的项目url ,D:/git/GitRepository/oa 为git版本库的位置

 

项目中有存在分支的迁移示例

D:
cd D:\软件\GitTfs-0.25.1.529\GitTfs-0.25.1.529
git-tfs clone -u hhjjjh -p hhj http://localhost:8080/tfs/oa/ $/oa/code/oa D:/git/GitRepository/宜华集团OA系统/YIHUA.OA
cd D:/git/GitRepository/oa
D:\软件\GitTfs-0.25.1.529\GitTfs-0.25.1.529\git-tfs 
branch --init --all

@pause

注:

$/oa/code/oa 为主分支

 

 

如果移迁后在tfs上的代码还有改动则需要同步到git去的例子

 

D:
cd D:/git/GitRepository/oa
D:\软件\GitTfs-0.25.1.529\GitTfs-0.25.1.529\git-tfs pull
@pause

 

GitTfs-0.25.1.529下载地址

https://download.csdn.net/download/hhjjjh/11058277

 

你可能感兴趣的:(使GitTfs项目迁移工具把tfs的中的项目迁移到git上面去)