Commit changes made in your application in ServiceNow Studio to a linked Git repository. You can either select a few changes to commit, or commit all changes on the instance at once.
Procédure
-
Navigate to .
-
In the file navigator, select the application you want to open.
-
Select App details to open the app in the canvas.
-
Select .
The file changes from all the update sets display. By default, the changes from the current update set display first.
-
Select the file changes you want 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 the 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.
Remarque :
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.
Résultats
The following operations occur:
- The ServiceNow AI Platform identifies all local changes.
- The ServiceNow AI Platform commits all local changes to the remote repository.
Remarque : For list of known files that don’t have customer update records and are untracked, see
Customer Updates table.