Shelving checked-out files

To shelve checked-out files in a pending changelist:

  1. Open the Shelve dialog by doing one of the following:

    • Go to View > Pending Changelists. On the Pending dialog, right-click the changelist and select Shelve…​.
    • In the Solution Explorer, right-click a file that is in a pending changelist and select Shelve…​.
  2. In the the Shelve dialog, select the files you want to shelve.
  3. Select any of the following options that apply:

    • Revert checked-out files after they are shelved: The files in your workspace will revert to the head revision in the depot.
    • Clear changelist of all previously shelved files before shelving
  4. Click Shelve.
  5. When prompted, enter a description and click OK.

    P4VS shelves the file in the selected changelist or, if you are shelving files in the default changelist, creates a new changelist.