cc branch

Update the branch associated with an environment. Prompts you to choose from local and remote branches of the project's git repository, and saves the selection along with the GitHub URL.

Usage

cc branch [PROJECT]

If no project is specified, uses the currently active project.

Examples

cc branch
# → Prompts to select environment and branch for the active project

cc branch acme
# → Prompts to select environment and branch for the acme project

After selection, CC saves the branch name and GitHub URL to the environment record. The branch is checked out automatically on cc switch.

  • cc switch — checks out the configured branch on switch

  • cc env — manage environments

Last updated

Was this helpful?