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

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

问题描述

在git中有一个非常方便的功能,可以让您修复上次提交,例如当你忘记了一些无法完全提交的东西时。



在git中执行此操作非常简单:

  git commit --amend 

没必要指定一个提交消息或其他任何东西,提交只是追加到你的上一次完整提交 - 或者至少这是我的理解。



TFVC中有没有类似的东西?

解决方案

不,不是。您可以更新签入注释或关联工作项目,但不能更改签入的文件内容。回滚也无济于事,因为这会为历史记录添加额外的补偿,使其更难理解。



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

要关联到新的工作项目,请记下变更集号码,打开工作项目并转至链接选项卡。点击添加链接并选择链接类型更改集,提供编号并保存工作项。


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.

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.

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.

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天全站免登陆