Is there a git style amend option in TFVC?

自作多情 提交于 2019-12-18 07:34:12

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/24183783/is-there-a-git-style-amend-option-in-tfvc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!