Michael Stum
Michael Stum

Reputation: 180874

Is there a way to do a partial checkin in 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?

Upvotes: 26

Views: 2969

Answers (1)

Leons
Leons

Reputation: 2674

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.

Upvotes: 28

Related Questions