TFS 中是否有本地提交? [英] Are there local commits in TFS?

查看:20
本文介绍了TFS 中是否有本地提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TFS 是否支持本地提交?

Does TFS support local commits?

换句话说:我可以

  1. 修改代码,
  2. 进行本地提交(不与他人共享这些更改),
  3. 测试我的修改和
  4. 如果我的更改没有破坏任何内容,请进行全局提交(之后我的更改可供其他开发人员使用)

在 TFS 2012 中?

in TFS 2012?

如果没有,是否有任何允许此功能的解决方法?

If it doesn't, are there any workarounds, which allow this functionality?

推荐答案

不,它不支持这个,但是它确实有几个你可以使用的替代方案.

No it doesn't support this, however it does have a couple of alternatives you can use instead.

1) 分支 - 所有开发人员都在自己的分支上工作,然后当他们对自己的更改感到满意时合并到主干/主干.

1) Branches - All developers work on their own branch then merge to trunk/main when they're happy with their changes.

2) 搁置集 - 开发人员搁置他们不想提交的任何更改.这使您可以撤消更改,或将其传递给团队中的其他开发人员,而不会丢失更改或签入主分支

2) Shelveset - developers shelve any change they don't want to commit yet. This lets you undo your change, or pass it to another developer on the team without losing the change or checking into the main branch

3) 门控签入 + 单元/自动化测试.每当开发人员签入时,TFS 都会自动搁置更改并运行 tfs 构建 + 任何相关测试(单元测试或自动化测试).如果一切顺利,则将其签入.我认为这不支持手动测试.

3) Gated Checkins + Unit/Automated tests. Any time a developer checks in, TFS Automatically shelves the changes and runs the tfs build + any associated tests (unit or automated). If everything succeeds then it is checked in. I don't believe this supports manual tests.

或以上所有内容的混合.

or a mix of all of the above.

这篇关于TFS 中是否有本地提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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