[英]How to move a project from Git to TFS in Visual Studio
I have a project that I've been working on for some time now and I just cannot make Git work for me.我有一个项目,我已经工作了一段时间,但我无法让 Git 为我工作。 I've spent a day trying to recover lost code and I am done with Git.
我花了一天时间试图恢复丢失的代码,我已经完成了 Git。
Can anyone tell me how to move an existing project into TFVC?谁能告诉我如何将现有项目转移到 TFVC 中? I have a Visual Studio Online account with a TFVC project all set up for this task, but I cannot figure out how to change the source control settings so that the project is no longer tied to Git.
我有一个 Visual Studio Online 帐户,其中有一个 TFVC 项目,全部为此任务设置,但我不知道如何更改源代码控制设置,以便项目不再与 Git 绑定。
I am currently developing on VS 2013.我目前正在 VS 2013 上进行开发。
Any help is greatly appreciated!任何帮助是极大的赞赏!
Just delete the .git folder (this one is normally hidden) in the root folder (fe via Windows Explorer).只需删除根文件夹中的.git文件夹(这个文件夹通常是隐藏的)(通过 Windows 资源管理器)。 This deletes all things related to git.
这将删除与 git 相关的所有内容。 After that add the code to your TFS project and check it in into TFS.
之后,将代码添加到您的 TFS 项目并将其签入 TFS。
Here's the procedure.这是程序。
You cant just change from Git to TFVC as this option is bound to the Team Project.您不能只是从 Git 更改为 TFVC,因为此选项绑定到团队项目。 You will need to create a new Team Project making sure that you select TFVC as the provider.
您需要创建一个新的团队项目,确保选择 TFVC 作为提供者。
You should now be migrated...你现在应该被迁移...
VS2017 - I had the same issue listed above and after deleting the .git folder in the root directory of my project folder, clicking Add Project to Source Control only created a new .git, from both Solution Explorer and the File menu. VS2017 - 我遇到了上面列出的相同问题,在删除项目文件夹根目录中的 .git 文件夹后,单击“将项目添加到源代码管理”仅从解决方案资源管理器和文件菜单中创建了一个新的 .git。 I got mine to work by deleting the .git folder, going into Team and Manage Connections and opening the TFS Project I wanted to add it to.
我通过删除 .git 文件夹,进入 Team 和 Manage Connections 并打开我想要将其添加到的 TFS 项目来让我的工作。 I then went to File->Source Control->Add Solution to Source Control and it worked.
然后我转到文件-> 源代码管理-> 将解决方案添加到源代码管理并且它起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.