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.
source share