Ignoring files and directories
You can define rules to ignore files and directories when recursively adding files, viewing working directory differences, and pushing changes to repositories. For example, users may have debug files in their working directories that should not be added to Surround SCM. You can define rules to ignore those files for all mainline branches, a specific mainline branch, repositories, or at the user level.
If rules are defined in multiple areas, they are all applied when a user performs an action that use the rules.
Files and directories ignored by rules are not ignored if they are explicitly selected when recursively adding files.
To set rules to ignore files and directories for: | You can: | More information |
---|---|---|
All mainline branches | Add file extensions or file and directory names to ignore in the File Names/Extensions options in the Mainline Options in the Server Options dialog box. The rules are applied for all users when they perform actions that use ignore rules. Server options are usually managed by an administrative user. | Setting auto-detect and ignore file options |
Specific mainline branch | Add file extensions or file and directory names to ignore for the mainline on the Options tab in the mainline branch Properties dialog box. These options override any ignore rules set in the server options. The rules are applied for all users when they perform actions that use ignore rules on the mainline. Mainline branch properties are usually managed by an administrative user. | Overriding server options for specific mainline branches |
Repositories | Add an .sscmignore file that contains rules for file extensions and file and directory patterns to ignore to your working directory. The rules are applied when you perform actions on repositories and subrepositories that contain any .sscmignore files. To share the rules with other team members, add an .sscmignore file to the repository so they can get it to their working directory. | Adding repository rules to ignore files and directories |
Specific user | Add rules for file extensions and file and directory names to ignore in the Ignore Files and Directories category in the User Options dialog box. The rules are applied when you perform actions that use ignore rules anywhere in Surround SCM. | Setting ignore files and directories options |