TFS auto-checkout before checkin

后端 未结 5 1895
夕颜
夕颜 2021-01-14 00:13

Does a feature like \"TFS auto-checkout before checkin\" exist, so that I don\'t checkout any file until the moment I say \"checkin\", e.g. in case I only change files tempo

5条回答
  •  不思量自难忘°
    2021-01-14 00:33

    No. But you can do one thing - Open solution in 2 Visual Studio, One in which solution is Online and another in which solution is offline. Do all your changes/work on Offline solution. After completing your task.

    1. Go to first VS (Online) and checkout the files containing your changes.
    2. Go to Second VS (Offline, containing your changes) - It will prompt for file changes and click "No to All" so that all your changes persist.
    3. Press Save All.
    4. First Solution (Online) will prompt for new changes and click "Yes To All" so that all your changes done in offline mode will get in new files.
    5. Get Latest. - Any conflicting changes will be reflected (Try automerge - if you're lucky will work perfectly)
    6. CHECK-IN

    Though a tedious task but a workout for your question.

提交回复
热议问题