If you have Version Control set up in your Control Org, when adding a new Environment you will have the option to enable Version Control in the Environment you are adding. You will then have the option to link a branch to the Environment.
To enable Version Control in an Environment when adding a new Environment:
- Have Version Control set up in your Control Org and Versioned data selected
- Visit Environments within the Release Tab
- Select ‘Add Environment‘
- Enter a Name for the Environment
- Specify the Type of Environment
- Toggle on Link a Branch
- Select either ‘Create a new branch’ or ‘Select an existing branch’
- Create a new branch:
- Select a Source branch to create your branch off of
- Give your branch a name
- Select an existing branch:
- Choose the existing branch from the dropdown
- Create a new branch:
- Select ‘Add‘ on the Environment Card
- The Environment will be added and linked to the branch
To enable Version Control in an existing connected Environment:
- Have Version Control set up in your Control Org and Versioned data selected
- Visit Environments within the Release Tab
- Select the Environment you wish to enable VC for
- Expand the Version Control section
- Select either ‘Create a new branch’ or ‘Select an existing branch’
- Create a new branch:
- Select a Source branch to create your branch off of
- Give your branch a name
- Select an existing branch:
- Choose the existing branch from the dropdown
- Create a new branch:
- Select ‘Use in Version Control’
- The branch will be linked to the Environment