This article provides the steps you could take to re-arrange cloud branches on Adobe Commerce, if they are not organized according to the correct hierarchy. If you do not have the branches organized in correct hierarchy, you will not be able to merge to the correct parent branch - it will go to the existing parent branch.
The correct hierarchy organization for your branches is:
To re-arrange cloud branches:
magento-cloud environment:info -e <branch to move> parent <target parent>
Note: You can specify the parent branch when creating a new branch. For steps, refer to Getting Starter creating branches in our developer documentation.
You can create a new environment branch using the
branch <environment-name> <parent-environment-ID> magento-cloud environment command.
It may take some additional time to create and activate a new environment branch.
Manage branches with the CLI in our developer documentation.