Commit changes made in ServiceNow Studio to a linked Git repository by selecting individual file changes or committing all changes on the instance at once.
Procedure
-
Navigate to .
-
In the file navigator, select the application you want to open.
-
Select App details to open the app in the canvas.
-
Select .
File changes from all update sets display. By default, changes from the current update set display first.
-
Select the file changes to commit.
-
To include untracked changes, select the Include changes not tracked via the Customer Update [sys_update_xml] table check box.
- The default for this check box is set via the glide.sourcecontrol.default_commit_mode property.
- The property can be set to include_untracked or exclude_untracked.
- The include_untracked mode commits updates to the application that do not generate sys_update_xml records, as well as any user-selected updates.
- The exclude_untracked mode commits only updates selected by the user in the Select files to commit to source control modal.
- The base system setting for the property is exclude_untracked.
- To hide the check box and use the value of the glide.sourcecontrol.default_commit_mode property, create the sn_devstudio.vcs.allow_commit_mode_selection property and set
it to false.
- Selecting this check box may incur a performance penalty.
Note:
Commits always occur in include_untracked mode in the following cases:
-
Select Continue.
-
Enter a comment for the changes in the Commit comment field.
-
Select Commit Files.
Result
The following operations occur:
- The ServiceNow AI Platform identifies all local changes.
- The ServiceNow AI Platform commits all local changes to the remote repository.
Note: For list of known files that do not have customer update records and are untracked, see
Customer Updates table.