Commit changes to a repository

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • 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.

    Avant de commencer

    Link an app to source control in ServiceNow Studio

    Role required: admin

    Procédure

    1. Navigate to All > App Engine > ServiceNow Studio.
    2. In the file navigator, select the application you want to open.
    3. Select App details to open the app in the canvas.
    4. Select Source control > Commit changes.
      The file changes from all the update sets display. By default, the changes from the current update set display first.
    5. Select the file changes you want to commit.
      Select the changes you want to commit.
    6. 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:

    7. Select Continue.
    8. Enter a comment for the changes in the Commit comment field.
    9. 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.