问题
I have a file that has two independent modifications. I would only like to commit one of them.
Is there any way to only check in part of a file (without me modifying or shelving/unshelving it)?
Essentially, create a temp file on commit that then gets checked in instead of the file on disk?
回答1:
No, the only way is to shelve what changes you have, revert back or the previous version and apply the changes that you want to commit. After committing them, revert back to the shelved version.
来源:https://stackoverflow.com/questions/6021818/is-there-a-way-to-do-a-partial-checkin-in-tfs