Question

We need to delete a folder in one of our branches, but do not want it deleted in the main/root repository. The deleted folder is gone in ONE older version, but the newer versions retain it, as do the older versions.

I deleted it in the branch, merged to main, then in main did "undo pending changes" on that folder. The problem is each new merge to main, it wants to delete that folder again. How do I tell it to leave it in the main/root?

Was it helpful?

Solution

To prevent a changeset from being merged, you need to discard it. This is done from the Command Prompt.

The following example discards changeset 137 as a candidate for merging into branch2.

tf merge /discard /version:C137 branch1 branch2 /recursive
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top