Add files to the depot

To add a file to the depot, you must open the file for add, which places the file in a changelist, and 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.

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

If you want to exclude certain files from being added to the depot, see Ignore files with P4IGNORE.

File names and operating systems

The names of files (and directories) might be lowercase, uppercase, or a mix of upper and lower case, such as such as readme, ReadMe, and README. Depending on the operating system of the Helix Core client and the operating system of the Helix Core Server, complications might occur when using Get Latest to sync files (or directories) if the same name has differences of case. To learn more, see Case sensitivity and multi-platform development in the Helix Core Server Administrator Guide.