Skip to content

workspace switch

Switch all projects in the current workspace to a given branch.

repo-on-fire workspace switch <branch>

The command first runs repo sync -d to bring projects back to their manifest defaults and detach any currently checked out topic branches. It then tries to check out the requested branch in every project in the workspace.

The command succeeds if the branch can be checked out in at least one project. If the workspace cannot be detached, or if the branch cannot be checked out in any project, the command exits with an error.

Example:

repo-on-fire workspace switch feature/my-branch