git-branchless-switch(1) General Commands Manual git-branchless-switch(1)

switch - Switch to the provided branch or commit

switch [-i|--interactive] [-c|--create] [-f|--force] [-m|--merge] [-d|--detach] [-h|--help] [TARGET]

Switch to the provided branch or commit

Interactively select a commit to check out
When checking out the target commit, also create a branch with the provided name pointing to that commit
Forcibly switch commits, discarding any working copy changes if necessary
If the current working copy changes do not apply cleanly to the target commit, start merge conflict resolution instead of aborting
If the target is a branch, switch to that branch and immediately detach from it
Print help (see a summary with '-h')
[TARGET]
The commit or branch to check out.

If this is not provided, then interactive commit selection starts as if `--interactive` were passed.

If this is provided and the `--interactive` flag is passed, this text is used to pre-fill the interactive commit selector.

switch