Clone a Git repository from ServiceNow Studio
Clone a remote Git repository to collaborate on applications in Fluent source control in ServiceNow Studio.
Before you begin
- Create a workspace for your applications.
- Set your basic or OAuth 2.0 credentials for ServiceNow Studio to connect to your Git repository. For more information, see Connect to a Git provider using basic authentication and Connect to a Git provider using OAuth 2.0.
Role required: admin
About this task
You can clone a remote Git repository that contains Fluent applications. The repository must contain one or more applications with now.config.json and package.json files.
Cloning is intended for developing an application on multiple non-production instances and managing it in a single repository. To publish an application and deploy it to a production instance, use the Application Repository. For more information, see ServiceNow application repository.
Procedure
Result
The application is added to the instance and your workspace with the files from the remote repository. Only the default branch is cloned initially. To check out another branch, you must fetch the other branches from the remote repository using the Git: Fetch command from the command palette.
What to do next
You can check out or create branches in the repository and push changes to the remote repository. For more information, see Using Fluent source control in ServiceNow Studio.