Legacy - Switch branch

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:2分
  • Application developers can switch to a different repository branch to work on another version of the application.

    始める前に

    重要:
    Starting with the Xanadu release, the legacy version of ServiceNow Studio is being prepared for future deprecation. It will be hidden and no longer activated on new instances but will continue to be supported. For details on the deprecation process, see the Deprecation Process [KB0867184] article in the Now Support Knowledge Base.

    Try building and editing apps in the current version of ServiceNow Studio instead. For more information, see ServiceNow Studio.

    • Role required: admin
    • GIT repository with one or more available branches.

    手順

    1. Navigate to All > Source Control > Switch Branch.
      The system displays the Switch Branch window.
    2. オプション: If there any local changes on the instance, you can save or discard them.
      OptionDescription
      Save 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.
      注:
      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. Note you cannot later restore discarded changes.
    3. Select the branch you want to switch to.
    4. Click Switch Branch.
      Studio updates the local application to match the branch version from repository.