简体   繁体   English

如何识别在TFS外部更新的文件

[英]How to identify files updated outside of TFS

We have a nopCommerce website of a client's that one of their IT guys was modifying views directly on the web server. 我们有一个客户的nopCommerce网站,其中一个IT人员正在直接在Web服务器上修改视图。 They now want to do more extensive changes so we want to put the baseline NopCom code in TFS. 他们现在希望进行更广泛的更改,因此我们希望将基准NopCom代码放入TFS中。

Then, ideally, we'd like to be able to identify all the views that were changed directly on the web server and have those changed views be recognize as changes in TFS source control to check-in. 然后,理想情况下,我们希望能够识别直接在Web服务器上更改的所有视图,并将那些更改的视图识别为TFS源代码管理中的更改以进行检入。

Is there anyway to do this in Visual Studio/TFS in batch? 无论如何,在Visual Studio / TFS中可以批量执行此操作吗? ie it would be great to do a check-in locally so all the base code of NopCom was checked in to TFS, then download the website files and overwrite them in the local workspace and have TFS recursively do a diff and determine if any new files were added or existing ones changed and mark those for check-in.... I know...I'm probably dreaming, but any other smart workarounds appreciated as well, assuming this won't work. 即最好在本地进行签入,以便将NopCom的所有基本代码都签入到TFS,然后下载网站文件并将其覆盖在本地工作区中,并让TFS递归进行比较并确定是否有任何新文件已添加或已更改并标记了要签入的位置。...我知道...我可能在做梦,但是其他任何聪明的解决方法也都值得赞赏,但前提是这行不通。

TFS does what you want. TFS可以满足您的需求。 To set up Team Foundation Version Control (TFVC) on your dev machine, you just need to create a workspace and then add your code. 要在开发机器上设置Team Foundation版本控制(TFVC),只需创建一个工作区,然后添加代码。 Check link: https://www.visualstudio.com/en-us/docs/tfvc/set-up-team-foundation-version-control-your-dev-machine 检查链接: https : //www.visualstudio.com/zh-cn/docs/tfvc/set-up-team-foundation-version-control-your-dev-machine

When your codebase is under version control, you can develop your app, create and open files in Solution Explorer and write your code, while version control does other work for you. 当您的代码库受版本控制时,您可以开发应用程序,在解决方案资源管理器中创建和打开文件并编写代码,而版本控制则为您完成其他工作。 When you check files in and out, it keeps track of your changes and creates a history of your project. 当您签入和签出文件时,它会跟踪您的更改并创建项目的历史记录。

You can use the Diff window to clearly see the difference by comparing folders or files. 您可以使用“差异”窗口通过比较文件夹或文件来清楚地看到差异。 You can compare server folders and local folders to each other, and view the differences between the contents of each folder. 您可以相互比较服务器文件夹和本地文件夹,并查看每个文件夹内容之间的差异。 You can compare two server files, two local files, or a server file against a local file and view the differences between the files. 您可以将两个服务器文件,两个本地文件或一个服务器文件与一个本地文件进行比较,并查看文件之间的差异。

You can get more details about TFVC from website below: https://www.visualstudio.com/en-us/docs/tfvc/overview 您可以从以下网站获取有关TFVC的更多详细信息: https ://www.visualstudio.com/zh-cn/docs/tfvc/overview

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM