有没有办法在 TFS 中进行部分签入?

有没有办法在 TFS 中进行部分签入?

问题描述:

我有一个文件有两个独立的修改.我只想提交其中一个.

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.