TFVC 中是否有 git 样式修改选项? [英] Is there a git style amend option in TFVC?

查看:18
本文介绍了TFVC 中是否有 git 样式修改选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 git 中有一个非常方便的功能,可以让您修复上次提交,例如当你忘记了不能完全提交的事情时.

In git there is a very handy feature that lets you fix your last commit, e.g. when you have forgotten something that does not justify a full commit.

在 git 中很容易做到这一点:

It is very easy to do this in 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.

TFVC 中有没有类似的东西?

Is there anything similar available in 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.

要更新消息,请打开 TFVC 历史记录面板并右键单击变更集.选择显示变更集详细信息,您将能够更新签入注释和签入注释(可选).

To update the message, open the TFVC history panel and right click a changeset. 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.

这篇关于TFVC 中是否有 git 样式修改选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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