---
sourceDocument: Australia Build or modify applications
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/application-development

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Create versions and branches in Git

# Create versions and branches in Git {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 min. de leitura

App developers using ServiceNow Studio can create versions and branches in their Git repositories.

## Create a tag to link to a particular application version {#ariaid-title2}

Create a tag in the repository to link to a particular app version in ServiceNow Studio.

### Antes de Iniciar

[Link an app to source control in ServiceNow Studio](https://servicenow-prod.fluidtopics.net/AJB3RRVvlbN9W7aSTZbKvw "Linking an application or application-customization to source control allows application developers to manage changes in ServiceNow Studio from a Git repository.")

Role required: admin or sn_group_creator.app_creator

### Procedimento

1. Navigate to AllApp EngineServiceNow 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 controlCreate tag.
5. Enter the Tag name.
6. Select Create tag.
7. Select Close.

### O que Fazer Depois

Commit changes to the new branch.

## Switch repository branches {#ariaid-title3}

Application developers can switch to a different repository branch to work on another version of the application using ServiceNow Studio.

### Antes de Iniciar

You must have a Git repository with one or more available branches.

Role required: admin

### Procedimento

1. Navigate to AllApp EngineServiceNow 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 controlSwitch branch.
5. Choose whether you want to stash or discard local changes.

   | 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. If you choose to discard, you will not be able to recover those files. Nota: Use caution when discarding local changes. Since all application developers share repository credentials, there is no way to discard just one set of user changes. |
   |-|-|

   {#sns-sc-switch-branches__choicetable_evb_nr3_t5}
6. Select the branch you want to switch to.
7. Select Switch Branch.

### Resultado

ServiceNow Studio updates the local application to match the branch version from repository.

## Create a repository branch {#ariaid-title4}

Application developers can create a branch to work on a new version of an existing app in ServiceNow Studio. Creating a branch will result in a new branch being created in the remote repository that is configured for this application. This application, including any uncommitted changes, will switch to
the new branch.

### Antes de Iniciar

Role required: admin or sn_group_creator.app_creator

### Procedimento

1. Navigate to AllApp EngineServiceNow 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 controlCreate branch.
5. Enter a Branch name.
6. **Opcional:** Create a branch from a tab by selecting the Create from Tag drop-down list and selecting an existing tag.
7. Select Create Branch.
8. Select Close.

## Set a default branch {#ariaid-title5}

Set a default branch when you want to use a branch other than main for new changes or for your main ServiceNow Studio development repository.

### Antes de Iniciar

[Link an app to source control in ServiceNow Studio](https://servicenow-prod.fluidtopics.net/AJB3RRVvlbN9W7aSTZbKvw "Linking an application or application-customization to source control allows application developers to manage changes in ServiceNow Studio from a Git repository.")

Role required: admin

### Procedimento

1. Follow the steps listed in [Add a system property](https://www.servicenow.com/docs/access?context=t_AddAPropertyUsingSysPropsList&version=australia&pubname=australia-platform-administration&ft:locale=en-US).
2. Add the glide.source_control.default_branch_name property, and specify the default branch name of the Git source control repository to work from.  
   For example, default branch names could include pull requests, code commits, and the like. Application developers' work is managed from and saved into the default branch if not otherwise specified. If not changed, this value defaults to sn_instances/\<instance_name\>.

