将GIT代码迁移到TFVC(仅需要签入的最新代码) [英] Migrate GIT code to TFVC(Only latest code required to be checked in)

查看:68
本文介绍了将GIT代码迁移到TFVC(仅需要签入的最新代码)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们为sharepoint O365创建了代码库,我们使用了TFS的git
支持。我们现在想停止使用git并使用TFVC代替。您能告诉我们实现它的方法吗?我们只需要最新版本的代码(无需历史记录)。



我们尝试了git-tf,但得到的错误就像下面 



git-tf:此git存储库未配置为使用git-tf



如果git-tf是唯一能让你满意的方式让我们详细了解步骤。 

解决方案

嗨GantMish,


感谢您在此发帖。


因为您不需要任何历史记录,所以您只需删除  .git   文件夹(这个通常是隐藏的)在根文件夹中(fe通过Windows资源管理器)。这会删除
与git相关的所有内容。之后,将代码添加到TFS项目并将其签入TFS。有关详细信息,请参阅此

case


祝你好运,


We created code base for sharepoint O365 ,  we used the git support of TFS. We now want to stop using git and use TFVC instead . Could you please let us know the  way to achieve it . We need only the latest version of the code (No history required).

We  tried  git-tf , but getting error like below 

git-tf: this git repository is not configured to use git-tf

If git-tf is the only way could you please let us know the steps in detail. 

解决方案

Hi GantMish,

Thank you for posting here.

Cause you didn't need any history, so you just delete the .git folder (this one is normally hidden) in the root folder (f.e. via Windows Explorer). This deletes all things related to git. After that add the code to your TFS project and check it in into TFS. For more details, please refer to this case.

Best regards,


这篇关于将GIT代码迁移到TFVC(仅需要签入的最新代码)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆