Script I use for creating and updating release branches for my Development flow.
- Pull latest from release branch (active branch, usually ready for release)
- Merge the active branch to develop branch
- Create the new branch from the develop branch
- Push the develop branch to origin
- Push the newly created branch to the origin
This is the case where there is updates to the active release branch and the existing branch must be updated
- Pull latest from release branch (active branch, usually ready for release)
- Merge the active branch to develop branch
- Merge new changes from develop to the existing branch
- Push the develop branch to origin
- Push the new updated branch to the origin
For creating a new branch from the active release branch
./release_to_release_branch.sh create <project-folder> release/active-branch release/new-branch
For updating the new branch from the active release branch
./release_to_release_branch.sh update <project-folder> release/active-branch release/existing-branch