Branches on the ActiveState Platform allow users to have more flexibility to work with complex projects. Branches bring support for experimental builds, managing complex multi-platform projects, different builds per environment, and more.
You must be on a paid tier to take full advantage of the branch
feature.
For more information on pricing: https://www.activestate.com/solutions/pricing/
Branches afford new types of working, and the potential benefits of working with a branched system include:
Changes made on a branch are localized, so you can safely experiment on other branches without impacting your main branch.
Login to the ActiveState Platform.
Open any of your existing projects.
Click the Configuration tab.
Click on Manage (or go to Project Settings and click Branches to view the current branches).
Click on Add Child and name your branch before clicking Add.
If successful, you will see your new child branch in the UI:
Navigate to your project path in your Terminal.
state auth
.Activate your project using state activate
.
Review the current branch you are in using state branch
, which should default to main.
To create a child off your main branch, use state branch add <child-branch-name>
.
To switch to your branch, use state branch add <child-branch-name>
.
The ActiveState Platform will notify you when a child branch has updates available from its parent branch.
If the main branch has been updated (by you or another authorized owner), your branch will get a notification that you can update it to keep in line with the main branch.
This is especially useful when:
state branch switch <branchName>
to change branches.state activate <orgName/projectName> --branch <branchName>