Clone a Git repository with the ServiceNow IDE

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 1 Minute Lesedauer
  • Clone a remote Git repository to collaborate on applications in source control with the ServiceNow IDE.

    Vorbereitungen

    Role required: sn_glider.ide_git_user or admin

    Warum und wann dieser Vorgang ausgeführt wird

    You can clone a remote Git repository that contains applications created or converted with the ServiceNow IDE or ServiceNow SDK. The repository must contain one or more applications with now.config.json and package.json files.The repository must contain an application with now.config.json and package.json files in the base directory.

    Hinweis:
    ServiceNow IDE supports cloning from Git servers on Git version 2.3.2 or later.

    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.

    Prozedur

    1. Navigate to All > App Development > ServiceNow IDE.
    2. Open a workspace to which you want to add the application.
    3. Use one of the following keyboard shortcuts to open the command palette:
      • Windows: Ctrl-Shift-P
      • Mac: Cmd-Shift-P
    4. Enter Git: Clone and press Enter.
    5. Enter a remote Git repository URL and press Enter.

    Ergebnisse

    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.

    Hinweis:
    If you encounter issues after cloning an application, you can run the Fluent: Reset ApplicationSynchrotron: Reset Application command to remove source files in the application (not application metadata) and re-clone the application.

    Nächste Maßnahme

    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.