Linking an application or application-customization to source control allows application developers to manage changes from a Git repository.

Before you begin

Important: You've landed at the legacy version of Studio, which will be supported until the Australia release in Q1 2026. Try building and editing apps in the new version of ServiceNow Studio instead. For more information, see Building applications with ServiceNow Studio.
  • Role required: admin
  • Learn more about Managing application-customizations.
  • Create a dedicated Git repository for the application. For increased security, enable multi-factor authentication for the Git repository.
  • Generate an access token that the source control integration can use instead of a password and multi-factor authentication passkey. Search for personal access token on GitHub or GitLab.
  • Restrict permissions on the access token to allow read and write access to the Git repository.
  • Verify that the non-production instance has network access to the Git repository.
  • Ensure that users add the email address to their respective Users Table (ServiceNow sys_user) records that they use in their commits to the Git repository.
  • Learn more: Legacy - Migrate completed update set history to Source Control

About this task

The source control integration does not support linking to an application or customization on a production instance. Instead, install applications on a production instance from the application repository, an update set, or the ServiceNow Store.

Procedure

  1. Open the application you want to link to source control in Studio.
  2. Navigate to Source Control > Link to Source Control.
    Studio displays the Link to Source Control dialog box.Link to Source Control dialog box
  3. Enter the connection details for the Git repository.
    Note: All application developers on the instance share a single set of repository credentials.
  4. Click Submit.
    The system validates the connection and user credentials and displays a success message.

    All application developers on the instance can use the linked Git repository to manage changes.