源控制问题 [英] Source Control Issue

查看:114
本文介绍了源控制问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个新项目(Xamarin Forms)。 我试图将它添加到我的TFS源代码管理中,然后单击错误的按钮并将其添加到Git中。 现在我试图摆脱Git源代码控制。 我删除项目
文件夹中的.git目录,重新打开项目,它似乎不受源代码管理。 我转到工具,选项,源代码控制并切换到TFS。 然后当我"添加到源控件"时将它添加回Git。 我似乎无法解决这个问题。 我
我正在使用VS社区2017.  TFS Express 2015。


我见过的所有相关文章都是针对VS 2015的,说明与我的设置不符。 我也尝试了注册表修复(在另一篇文章中找到),但同样,文章与我的设置不符。









AlessiJax

解决方案

您好,


欢迎来到MSDN论坛。


从您的团队项目中添加TFVC存储库在Web门户中,您可以向团队项目添加其他存储库。




在此之后,请查看以下步骤:


1.连接到新的TFVC团队项目并创建本地工作区。


2.创建所需的文件夹结构。


3.将Git仓库中的文件(.git除外)复制到此位置。


4.打开解决方案并右键单击它并选择"添加到源代码管理"


祝你好运,


Joyce



I created a new project (Xamarin Forms).  I was trying to add it to my TFS Source Control and clicked the wrong button and added it to Git instead.  Now I am trying to get rid of Git source control.  I delete the .git directory in my project folder, reopen the project, and it seems to be out of source control.  I go to tools, options, source control and switch to TFS.  Then when I "add to source control" is adds it back to Git.  I can't seem to get around this.  I am using VS Community 2017.  TFS Express 2015.

All the articles related to this I have seen are for VS 2015, and the instructions don't match my setup.  I also tried the registry fix (found in another article) but again, the articles don't match my setup.



AlessiJax

解决方案

Hi,

Welcome to MSDN forum.

Add TFVC repositories in your team project, from the admin context of the web portal, you can add additional repositories to a team project.

After this, have a look at the following steps:

1.Connect to that new TFVC Team Project and create a local workspace.

2.Create the folder structure you need.

3.Copy the files from the Git repo (except .git) to this location.

4.Open the solution and right click on it and select "add to source control"

Best regards,

Joyce


这篇关于源控制问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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