Adding Files to Source Control—Perforce Helix Core

When working in a project that is connected to source control, there may be occasions when you have files in your local copy of the project that are not yet part of the source control copy.  

How to Add Files to Source Control

  1. Do one of the following, depending on the part of the user interface you are using:
    • RibbonSelect Source Control > Add.
    • Right-Click In the File List window pane, right-click the file you want to add and select Source Control > Add.

    The Submit dialog opens. The selected files are listed with check boxes next to them.

  1. (Optional) Enter an optional comment tied to the submit. This enables you to keep an audit trail for a file. The comment can then be viewed from the History dialog, which can be accessed from the Source Control Explorer, the Source Control ribbon, the File menu, or the Source Control button .

  2. (Optional) If you want to see all files with pending changes (rather than only those you selected), click .

  3. Make sure to click the check box next to each file you want to check in so that it contains a check mark.

  4. If you want to automatically check the files out of source control, select Keep Checked Out.
  5. Click Submit.

How to Add Files to Source Control Using the Explorer

  1. Select View > Source Control Explorer. The Source Control Explorer opens.
  2. From the drop-down or the Home pane, select Pending Changes.

    The Pending Changes pane opens. Files that will be submitted are listed under Included Changes, and files that will not be submitted are listed under Excluded Changes. You can identify newly added files because they say [add] next to the file name.

  3. (Optional) Enter an optional comment tied to the submit. This enables you to keep an audit trail for a file. The comment can then be viewed from the History dialog, which can be accessed from the Source Control Explorer, the Source Control ribbon, the File menu, or the Source Control button .
  4. (Optional) If you want to select the files or folders that you include in the submit, right-click a file or folder and select one of the following options from the context menu.
    • Exclude Excludes the selected file from the submit

    • Exclude Unselected Excludes all unselected files from the submit

    • Include Includes the selected file in the submit

    • Include Unselected Includes all unselected files in the submit

  5. Click Submit Included to submit all of the files in the Included Changes list.

    Note Adding files from other areas of the Lingo interface (e.g., Pending Changes window pane, Source Control ribbon) will only add new files. However, if you use the Source Control Explorer to submit your files, it will submit all of your pending changes: both new files and modified files. If you do not want to include all of your files in the submit, you can right-click them and select Exclude. Files you exclude will not be submitted.