Is it possible to select which changes in a file you want to check in? For example, I have added two projects to a solution file, but I only want to check in one of them. Or I have done work in two parts of a file, but only one part is done and ready to check in. Ideally, I'd like to use the new diff-utility in 2012, and just select the parts I want to check in, but can I do that?
My workaround (in VS2015) is:
Unfortunately there is no way to do that in TFS natively. TFS will always check in the whole version of the current file and it will force you to save your changes before checking in.
This is possible with Git. Using Git, if you were to do the following:
Then only line 1 will be checked into the repository. Furthermore, you can integrate your local git repository using git-tf, a new open-source tool published by Microsoft. You can download that tool here or here. The downside of working with Git right now is that it doesn't have great VS integration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With