Project Validation
Validating Each File Before a Commit
To enable automatic validation of each file before a commit, select the Validate each file before committing option in the Git Client preferences page ( , or , or click the Settings button from the toolbar of the Git Staging view and select Preferences).
If validation problems are detected, the commit operation will be stopped and a dialog box will appear informing you that the problems can be viewed in the "Results" area (in the "Git pre-commit validation" tab). If the Reject commit when validation problems occur option is selected, the dialog box will include a Commit anyway button that allows the commit operation to be completed even if validation issues have been found.
Resources
For more information about the validation features that can be enabled for the Git Client, watch our video demonstration: