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?
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.
精彩评论