Skip to content

Update an environment’s deploying branch

Environments with Default Deployment enabled are configured to track a specific branch of an application’s wpcomvip GitHub repository. For example, new production environments are set up to track a branch named production by default. Pushing any changes to this branch (via a push, merge, or rebase) triggers an automatic deployment to the production environment.

The branch of an application’s wpcomvip Github repository that deploys to an environment can be updated in the VIP Dashboard.



To change an environment’s deploying branch, a user must have at minimum an Org admin role or an App admin role for that application.

  1. Navigate to the VIP Dashboard for an application.
  2. Select an environment from the environment dropdown located at the upper left of the VIP Dashboard.
  3. Select “Code” from the sidebar navigation at the left of the screen.
  4. Select Repository from the submenu.

Update the deploying branch


The branch deploying to an environment can only be updated on an environment that has Default Deployment enabled.

In the Repository Management panel of the VIP Dashboard:

  1. In the field labeled “Branch Name“, enter the name of the repository branch that should deploy to the environment after the update. As characters are entered into the search field, existing branches of the application repository that match the characters can be selected from a dynamically generated dropdown list. If a repository has more than 100 existing branches, the dropdown list will not be generated and the full name of a branch must be entered by typing instead.
  2. Select the button labeled “Change Branch and Deploy“.

Successfully updating the deploying branch will trigger a code deployment to the environment from the newly configured branch.

If the branch name entered in the field does not exist in the application’s GitHub repository, the process will fail and no code deployment will occur.

The progress of the code deployment of the updated branch can be monitored in the Deployments panel for that environment.

Last updated: June 25, 2024

Relevant to

  • Node.js
  • WordPress