Ignore files and folders from the file view

Your project might contain files or folders you do not want to version. P4 One automatically ignores hidden files, such as .DS_Store files on macOS. To exclude other files or file types from versioning, you can indicate for P4 One to ignore them. Ignored files are not included when performing P4 One actions, such as restoring a version or submitting a version to P4.

All workspaces contain a .p4ignore file. This file contains a list of files and folders to ignore when versioning your project. You can populate the .p4ignore file by choosing items to ignore in the P4 One file view.

  1. In the file view, right-click the item to ignore, choose Ignore, and select an option.

    • Ignore "<ItemName>" ignores all files in the workspace that have a matching file name and extension. If you selected a folder to ignore, any folders with the matching file name are ignored.

    • All items with the extension "<extension>" ignores all files in the workspace that have a matching extension only.

    To undo an ignore, you must edit the .p4ignore file. To learn more, see Edit the .p4ignore file to ignore files and folders in a workspace.