简体   繁体   English

在TFVC中有一个git样式修改选项吗?

[英]Is there a git style amend option in TFVC?

In git there is a very handy feature that lets you fix your last commit, eg when you have forgotten something that does not justify a full commit. 在git中有一个非常方便的功能,可以让你修复你的最后一次提交,例如当你忘记了一些不能完全提交的东西时。

It is very easy to do this in git: 在git中很容易做到这一点:

git commit --amend

That way you don't have to specify a commit message or anything else, the commit is simply "appended" to your last full commit - or at least that is how I understand it. 这样您就不必指定提交消息或其他任何内容,只需将提交“附加”到上一次完整提交 - 或者至少这是我理解它的方式。

Is there anything similar available in TFVC? TFVC中有类似的东西吗?

No, not really. 不,不是真的。 You can update the Check-in comment, or associate a work item, but you cannot change the file contents of the check-in. 您可以更新签到注释或关联工作项,但不能更改签入的文件内容。 A rollback doesn't help either, since that will add yet an additional compensating checkin to the history, making it even harder to understand. 回滚也没有帮助,因为这将为历史添加额外的补偿登记,使其更难理解。

To update the message, open the TFVC history panel and right click a changeset. 要更新消息,请打开TFVC历史记录面板,然后右键单击更改集。 Choose Show Changeset Details and you'll be able to update the Check-in comment and optionally the check-in notes. 选择显示变更集详细信息 ,您将能够更新签到注释和可选的签入说明。

To associate to a new work item make note of the changeset number, open the work item and go to the links tab. 要关联到新工作项,请记下变更集编号,打开工作项并转到链接选项卡。 Click add-link and chose the link type "Changeset", supply the number and save the work item. 单击添加链接并选择链接类型“更改集”,提供编号并保存工作项。

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

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