Start a conversation

Syncing Default Stage Branch with Production

Learn the functionality of the Reset Branch button in Dev Tools.

The Reset Branch button appears in the Dev Tools area of the Admin on your Community’s Staging instance.

This feature syncs your default stage branch (typically stage-main) with your main production branch (typically main) so you have a current, clean staging environment on which to validate and merge your latest changes before sending them to production.

Selecting the Reset Branch button will remove any changes to stage-main and sync it with your main branch, using main as your single source of truth.

Example Workflow

alt_text

Here is an example workflow using the Reset Branch feature:

  1. Click Reset Branch to sync stage-main with the latest production changes present on main.
  2. Create a new branch (e.g. examplebranch1).
  3. Developers make changes in examplebranch1.
  4. Changes are committed to examplebranch1.
  5. examplebranch1 is merged into stage-main via a Pull Request.
  6. Changes are validated on stage-main.
  7. stage-main is merged into main via a Pull Request.
  8. Merge is approved and new updates are live in production.

In this workflow example, the first step in developing a new feature is selecting Reset Branch in order to create a clean version of stage-main to base the feature branch off of.

From there, any changes made to the feature are committed and merged through to main.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. ATLAS

  2. Posted
  3. Updated

Comments