--- title: Create versions and branches in Git description: Create tags and branches in a Git repository from ServiceNow Studio to version application releases and manage parallel development streams.Create a tag in the Git repository from ServiceNow Studio to mark a specific application version for future reference.Switch to a different repository branch in ServiceNow Studio to work on a separate version of the application.Create a branch in ServiceNow Studio to develop a new version of an existing app in isolation. The new branch is created in the remote repository and the application, including any uncommitted changes, switches to the new branch.Set a default branch in ServiceNow Studio to direct new changes to a branch other than main. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/application-development/servicenow-studio-classic/sns-sc-create-versions-branches-git.html release: australia product: ServiceNow Studio Classic classification: servicenow-studio-classic topic_type: concept last_updated: "2026-05-27" reading_time_minutes: 3 breadcrumb: [Metadata source control in ServiceNow Studio, Source control integration, Use, ServiceNow Studio, Developing your application, Building applications] --- # Create versions and branches in Git Create tags and branches in a Git repository from ServiceNow Studio to version application releases and manage parallel development streams. **Parent Topic:**[Metadata source control in ServiceNow Studio](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-studio-classic/source-control-in-servicenow-studio.md) ## Create a tag to link to a particular application version Create a tag in the Git repository from ServiceNow Studio to mark a specific application version for future reference. ### Before you begin [Link an app to source control in ServiceNow Studio](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/servicenow-studio-classic/link-app-to-source-control.md) Role required: admin or sn\_group\_creator.app\_creator ### Procedure 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** > **Create tag**. 5. Enter the **Tag name**. 6. Select **Create tag**. The tag is created in the repository and linked to the current application version. 7. Select **Close**. ### What to do next Commit changes to the new branch. ## Switch repository branches Switch to a different repository branch in ServiceNow Studio to work on a separate version of the application. ### Before you begin A Git repository with one or more available branches must exist. Role required: admin ### Procedure 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** > **Switch branch**. 5. Choose whether to stash or discard local changes before switching.
| Option | Description |
|---|---|
| **Stash local changes** | Saves local changes before switching to an alternate branch. You can later merge or discard the saved changes. |
| **Discard local changes** | Permanently deletes all local changes before switching to an alternate branch. Discarded changes cannot be recovered.**Note:** Use caution when discarding local changes. Because all application developers share repository credentials, there is no way to discard only one set of user changes. |