我有一个本地的git仓库,我想把它转换成TFVC版本控制,然后加载到TFS服务器上。有谁知道怎么做吗?
发布于 2018-01-23 17:30:28
要将Git repo迁移到TFVC repo,首先需要安装git-tf工具。
还要确保在迁移之前添加了TFVC存储库。并假设TFVC存储库名称是projectname。
成功安装git-tf后,使用以下命令签入TFS TFVC repo中的文件和历史记录:
cd /payh/to/local/git/repo
git tf configure http://tfs-server:8080/tfs/DefaultCollection "$\projectname"
git-tf checkin --deep --autosquash现在,git存储库中的所有文件和历史记录都已签入您的TFS TFVC存储库。
发布于 2018-01-23 16:46:13
如果您使用的是TFS2017更新1或更高版本,您可以直接将existing Git Repo导入到TFS
如果你真的想迁移你的Git repo,你可以看看这个线程的详细信息here。
https://stackoverflow.com/questions/48397169
复制相似问题