分别签入每个项目? [英] Check-in each project separately?

查看:29
本文介绍了分别签入每个项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个项目作为单独的 TFS 项目托管.

I have several projects hosted as separate TFS projects.

当我想签入更改时,所有项目的所有更改汇总在一起并作为一个签入提交.

When I want to check-in changes, all the changes of all projects sum up together and commit as one check-in.

我想处理每个项目的签入,以便当前签入只提交当前解决方案的文件.

I want to handle the check-ins per project, so that the current check-in only commits the files of the current solution.

TFS Pending Changes 页面如下所示:

Here is what the TFS Pending Changes page looks like:

红色是Project 1",黑色是Project 2",我不希望黑色出现在这里.

The red is "Project 1", the black is "Project 2", I don't want the black to be here at all.

推荐答案

有几个选项:

  1. 您可以为每个项目创建单独的工作区,并且只映射属于所述项目的目录,这样更改就不会共享".请参阅,了解如何创建每个项目都有单独的工作区.
  2. 您也可以右键单击该项目并从中选择签入"选项.
  3. 在挂起的更改窗口中,右键单击您不想签入(尚未)的任何文件夹或项目,然后选择排除以将其从此次签入中排除.
  4. 让待定更改窗口自动包含正确文件的另一个选项是转到源代码管理资源管理器并右键单击仅包含您要签入的项目的文件夹,然后从那里选择签入.
  1. You can create separate workspaces for each project and only map the directories that belong to said project, that way the changes will not be 'shared'. See this on how to create separate workspaces for each project.
  2. You can also right-click the project and choose the Check-in option from there.
  3. From the pending changes window, right-click any folder or item you don't want to check in (yet) and choose exclude to exclude them from this check-in.
  4. One more option to have the pending changes window auto-include the right files is to go to the source control explorer and right-click the folder containing just the project you want to check in and pick check-in from there.

将所有更改都签入的原因是为了确保源代码管理中的提交版本处于一致的、可构建的状态.如果您想在 TFS 附带的构建服务器组件上使用持续集成甚至 Gated 签入构建,您可能会在逐个签入项目时遇到麻烦.

The reason for checking in all changes as one is to make sure the comitted version in source control is in a consistent, buildable state. Should you want to use a Continuous Integration or even Gated checkin build on the build server component that goes with TFS, you might get into trouble when checking in the projects one by one.

这篇关于分别签入每个项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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