VS & TFS: register as a new branch

I coded as usual, but what was supposed to be a small change turned out to be a big new implementation ... New controllers and views and some domain refactoring ... due to the limited time I do not feel comfortable enough to just register the code in trunk ... I would like to create a new branch with this code ... and check it correctly ...

How can i do this? How can I create a new branch and send the code on the fly?
So far, all I could find was "open a new branch, copy the code in X, run the solution, paste the code" ...

+6
source share
1 answer

If you use the Git repository in your team project, you can simply create a new branch in the user interface and "check". Any uncommitted changes will be automatically transferred to the new branch. Then you can fix them.

If your Team Project is configured for TFVC, you will need to create a new branch in Server Explorer. After you have completed the β€œreceive” of this branch, you can copy your changes. Since your new branch should be identical to how the trunk looked when you started, if you just drop new files on top of you, you can register. You will need to manually delete yourself.

Another way with TFVC is to post your changes and delete them on another branch. This is not supported in the main product, but TFS Power Tools provides additional features.

+6
source

Source: https://habr.com/ru/post/983039/


All Articles