---
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


---

# Initialize a Git repository

# Initialize a Git repository with the ServiceNow IDE {#ariaid-title1}

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

Initialize a local Git repository for an application and push it to a remote Git repository to manage an application in source control.

## Antes de Iniciar

* Create or convert an application with the ServiceNow IDE. For more information, see [Create an application with the ServiceNow IDE](https://servicenow-prod.fluidtopics.net/LSark2Jb1LNJdT8hAz0kWA "Create an application to develop in source code with the ServiceNow IDE.") or [Convert an application with the ServiceNow IDE](https://servicenow-prod.fluidtopics.net/XoDyW02VF2OBP48TG0KqdQ "Convert an existing application to support development in source code with the ServiceNow IDE.").
* Create a dedicated Git repository for the application from your Git provider.
* Set your basic or OAuth 2.0 credentials for the ServiceNow IDE to connect to your Git repository. For more information, see [Connect to a Git provider using basic authentication with the ServiceNow IDE](https://servicenow-prod.fluidtopics.net/~gxgcmkV4s6RE0ZimPxK8Q "Connect to a Git domain or repository using basic authentication credentials to manage applications in source control from the ServiceNow IDE.") or [Configure OAuth 2.0 credentials to connect to a Git provider with the ServiceNow IDE](https://servicenow-prod.fluidtopics.net/J234vxOnSzizT9Rzo467Fw#authenticate-git-repository-oauth "Connect to a Git domain or repository using OAuth 2.0 credentials to manage applications in source control from the ServiceNow IDE.").

{#initialize-git-repository-servicenow-ide__ul_cst_bs4_bcc}

Role required: sn_glider.ide_git_user or admin

## Por Que e Quando Desempenhar Esta Tarefa

An application on an instance can be connected to only one repository at a time. To clone an application that exists in a remote Git repository, see [Clone a Git repository with the ServiceNow IDE](https://servicenow-prod.fluidtopics.net/zPOBplNM6ma_Hk0Xu2u9Ag "Clone a remote Git repository to collaborate on applications in source control with the ServiceNow IDE.").

## Procedimento

1. Navigate to AllApp DevelopmentServiceNow IDE.
2. Open a workspace with an application that isn't connected to a Git repository.
3. From the Activity Bar, select the Source Control view (![Source Control]()).
4. Select Initialize Repository or use the <kbd class="ph userinput">Git: Initialize Repository</kbd> command from the command palette.
5. Select the application for which you want to initialize a Git repository and press Enter.
6. Select main as the default branch name or enter another name and press Enter.
7. Select the Stage All Untracked Changes icon (![Stage all untracked changes]()).
8. Enter a commit message and select the Commit icon (![Stage all untracked changes]()).
9. Select the More actions menu icon (![More actions]()) and select Push.
10. Enter a remote repository URL and press Enter.

## Resultado

The application is available in the remote repository.
If your Git credentials aren't configured or are inactive, the application isn't pushed to the remote repository. When prompted to configure your credentials, select Configure to configure your Git credentials and then try again.

## O que Fazer Depois

You can check out or create branches in the repository and push changes to the remote repository. For more information, see [Using source control in the ServiceNow IDE](https://servicenow-prod.fluidtopics.net/wuVT2O8rJHm6dOJQWV1BUQ "Use Git commands and other source control features in the ServiceNow IDE to manage changes to an application across a development team.").
**Conceitos relacionados**   

* [Connect to a Git provider using OAuth 2.0 with the ServiceNow IDE](https://servicenow-prod.fluidtopics.net/J234vxOnSzizT9Rzo467Fw#connect-git-provider-oauth-2 "Set up an OAuth 2.0 application registry and credentials to connect to your Git provider from the ServiceNow IDE.")
* [Using source control in the ServiceNow IDE](https://servicenow-prod.fluidtopics.net/wuVT2O8rJHm6dOJQWV1BUQ "Use Git commands and other source control features in the ServiceNow IDE to manage changes to an application across a development team.")  
**Tarefas relacionadas**   

* [Connect to a Git provider using basic authentication with the ServiceNow IDE](https://servicenow-prod.fluidtopics.net/~gxgcmkV4s6RE0ZimPxK8Q "Connect to a Git domain or repository using basic authentication credentials to manage applications in source control from the ServiceNow IDE.")
* [Configure a MID Server to use source control with the ServiceNow IDE](https://servicenow-prod.fluidtopics.net/XsjlKKNluZNn5UwS5GgqAA "Configure a MID Server to use source control with the ServiceNow IDE if your Git provider is behind a firewall.")

