--- title: Link an application or application-customization to source control description: Linking an application or application-customization to source control allows application developers to manage changes in App Engine Studio \(AES\) from a Git repository. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/application-development/app-engine-studio/source-control-link-application.html release: australia product: App Engine Studio classification: app-engine-studio topic_type: task last_updated: "2026-03-12" reading_time_minutes: 3 breadcrumb: [Integrate with Git source control, Configure AES, Configure, App Engine Studio, Building low-code applications, Developing your application, Building applications] --- # Link an application or application-customization to source control Linking an application or application-customization to source control allows application developers to manage changes in App Engine Studio \(AES\) from a Git repository. ## Before you begin - Learn more about [Manage customizations to applications](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/application-repository-self-hosted/manage-customizations-store-apps.md). - 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 while creating a Credential record. Search for personal access token on [GitHub](https://help.github.com) or [GitLab](https://docs.gitlab.com). - 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. - Role required: admin ## 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 App Engine Studio. ## Procedure 1. Navigate to **All** > **App Engine** > **App Engine Studio**. 2. From the My Apps page, open your application. 3. Select **Source control** > **Link to source control**. App Engine Studio displays the Link to source control dialog box. \[Omitted image "source-control-link-to-sc-purple.png"\] Alt text: Link to source control dialog box 4. Enter the connection details for the Git repository.
Field Description
Network protocol Https or SSH credential type that enables secure channel data exchange.
URL The URL to the Git repository where you want to save application files. For SSH protocol, use command to generate private key `ssh-keygen -t rsa -m PEM -b 4096 -C “email@address”`.**Note:** If the Git repo URL for SSH provided by your Git server does not work, check with your Git server owner or provider for the correct URL. There may be additional specifications such as scheme protocol prefixes, port numbers, and so on, required for your Git repo URL to function.
Branch The repository branch to work on within the application.**Note:** This branch is used for commits. The default branch is set to "main" if it is not already set in the remote repository. If there is no default branch on the remote git repository, the instance creates a new default branch with the name "main". This is configured using the `glide.source_control.git_default_branch` system property.
MID Server Name The name of the existing MID Server to link through.**Note:** Use a separate MID Server to prevent conflicts with Discovery activities. Be sure that the MID server user can create files to the sys\_attachment table and that the table can accept files of the “bundle” type. Linking or an application through a MID Server enables access to repositories behind a firewall. See [MID Server](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/servicenow-platform/mid-server-landing.md) for more information.
Default email The committer email address is defined by the sys\_user record if available. But if a committer's sys\_user record email field is empty, the system generates an alternate email \(username@instancename.service-now.com\). You can also enter a default email address and change it later. To use that default email address in all cases, select the check box.
Credential The credential to be used with the selected protocol. See [Get started with credentials](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-security/credentials-getting-started.md) to learn more about creating credentials.**Note:** If you select the SSH network protocol, enter a valid credential of the SSH private key type. If you select the https protocol, enter a valid credential of the Basic Auth credentials type.
Commit Comment An optional description of the repository or application.
**Note:** All application developers on the instance share a single set of repository credentials. 5. Select **Link to source control**. 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. **Parent Topic:**[AES integration with a Git source control repository](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/app-engine-studio/aes-source-control-integration.md) **Related topics** [MID Server](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/servicenow-platform/mid-server-landing.md) [Getting started with credentials](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-security/credentials-getting-started.md)