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
Here is an example workflow using the Reset Branch feature:
- Click Reset Branch to sync
stage-main
with the latest production changes present onmain
. - Create a new branch (e.g.
examplebranch1
). - Developers make changes in
examplebranch1
. - Changes are committed to
examplebranch1
. examplebranch1
is merged intostage-main
via a Pull Request.- Changes are validated on
stage-main
. stage-main
is merged intomain
via a Pull Request.- 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
.
ATLAS
Comments