Excluding Objects from Workspace Operations

You can specify a list of files and folders that are never checked in such as backup files, temporary files, logs, or command output files.

Objects to ignore are specified by adding pattern matching expressions to a file called .dsrepoignore that can be located in any directory in the item workspace.

Patterns in .dsrepoignore files in lower levels of the directory structure take precedence over higher levels and patterns at a given level of the directory structure are matched against the file or directory relative to that level.

The .dsrepoignore files can be checked in so that the patterns are matched in every item workspace.


Before you begin:

You should have one or more workspaces created locally. The ignore files can be placed at any level in the workspace, but they must be located within the workspace.

Important: When the commands that use the ignore file traverse the workspace structure, they begin at the lowest level of the workspace and end at the workspace root. When an unmanaged file matches a pattern, the command excludes the unmanaged file from the operation.

See Also
Checking in Files or Folders
  1. Create a text file named .dsrepoignore in the appropriate workspace directory.
  2. Add the ignore patterns to the file. The file structure and rules are described in Understanding the .dsrepoignore File.
  3. Save the file.

Result: Any files that match patterns in the .dsrepoignore file are automatically excluded from checkin operations in the workspace. Optionally, checkin the .dsrepoignore file so that the patterns match in all item workspaces.