Undoing a Checkout of Source Control Files—Team Foundation Server

If you have files checked out from source control but do not want them checked out anymore, you can use the "Undo Check Out" option instead of checking in the files. While checking in the file would save your changes to source control, undoing a checkout returns the files to their previous state and does not check in any of your changes to source control.

How to Undo a Checkout of Source Control Files

  1. In one of the window panes (e.g., Content Explorer, Source Control Explorer, File List, Project Organizer, Pending Changes window pane), select the relevant file(s).
  2. Do one of the following, depending on the part of the user interface you are using:
    • Ribbon Select Source Control > Undo Check Out (for selected files) or Source control > Undo Check Out All (for all files in the project).

    • Right-Click If you have the Content Explorer, Project Organizer, Pending Changes window pane, or File List open, right-click the files you want to undo and select Source Control > Undo Check Out (for selected files) or Source Control > Project > Undo Check Out All (for all files in the project).

    The Undo Check Out dialog opens. The selected files are listed with check boxes next to them.

  3. (Optional) If you want to see all files with pending changes (rather than only those you selected), click .
  4. Make sure to click the check box next to each appropriate file so that it contains a check mark.
  5. Click Undo Check Out.