简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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