check out TFS at a specific change set

前端 未结 3 1674
野趣味
野趣味 2021-02-12 13:19

I\'m using TFS and VS 2012 and my project is in a broken state and I can\'t figure out why. I\'d like to go back to a previous version of my solution when I know it worked and

相关标签:
3条回答
  • 2021-02-12 13:31

    Try using the Advanced option when you right click on a solution or folder in Source Control:

    Advanced option when you right click on a specific file or folder in Source Control

    Then when the dialog appears, check both check boxes so the version you have is overwritten with the specific version you want by selecting Changeset from the ddl and entering the changeset you are after...

    dialog from VS2012 to get specific version based on changeset

    This should overwrite the existing solution files with the specific version.

    If you have trouble doing it over top of existing files, delete the source on your local machine first and get the specific version after that.

    0 讨论(0)
  • 2021-02-12 13:39
    1. Find the changeset you want and "Get This Version" to only get the changed files.
    2. Manually check out each file for edit in Source Control Explorer to match the changeset.

    Now the previous changeset's edits can be checked in.

    NOTE: This is MUCH quicker than getting the entire repo using "Get Specific Version."

    0 讨论(0)
  • 2021-02-12 13:47

    A changeset is just the files checked in at one time, not a snapshot of the whole system. You want to use labels for that. A label will mark all the files in their present state, just as you describe Git doing.

    0 讨论(0)
提交回复
热议问题