Adding files to the depot

To add a file to the depot, you must perform two actions: (1) open the file for add, which places the file in a changelist, and (2) submit the changelist, which copies the file to the depot.

To add a file to the depot:

  1. In the Tree pane, click the Workspace tab.
  2. Browse to the file you want to add.

    If the file does not reside in the depot, its icon is unmarked ( p4v file ws).

  3. Right-click the file and choose Mark for Add.

    The file icon displays a red plus sign (p4v file add) indicating that it is open for add.

  4. To submit the changelist containing the open file, right-click the file and choose Submit​.

    The Pending Changelist form is displayed, listing the files in the changelist.

  5. Enter a description of the change and click Submit.

    The new file is added to the depot.

Note

If you do not see the local file in the Workspace tab, choose Search > Filter Workspace > Show Files Not In Depot.