git-branchless-switch(1)
β¨ NAME β¨
switch β switch to the provided branch or commit π
This is the git-branchless-switch(1) page from the General Commands Manual, and bestie, itβs giving βsmall command, big checkout energy.β π¦
π¦ SYNOPSIS π¦
switch [-i|--interactive] [-c|--create] [-f|--force] [-m|--merge]
[-d|--detach] [-h|--help] [TARGET]
π DESCRIPTION π
Switch to the provided branch or commit. Thatβs the whole main-character job, no cap. β¨
π OPTIONS π
-i,--interactiveβ interactively select a commit to check out π«Ά-c,--create <BRANCH_NAME>β when checking out the target commit, also create a branch with the provided name pointing to that commit. New branch, who dis? πΈ-f,--forceβ forcibly switch commits, discarding any working copy changes if necessary. Careful, bestie β that can discard working copy changes when necessary. π-m,--mergeβ if the current working copy changes do not apply cleanly to the target commit, start merge conflict resolution instead of aborting. Conflict mode: activated ππ₯-d,--detachβ if the target is a branch, switch to that branch and immediately detach from it. Bye branch attachment ππ-h,--helpβ print help (see a summary with'-h'). Yes, thatβs exactly what it says π«Ά[TARGET]β the commit or branch to check out. If not provided, defaults to the current commit.
If a revset is provided, it must evaluate to set with exactly 1 head. Exactly one head, no ensemble cast. π
If this is provided and the --interactive flag is passed, this text is used to pre-fill the interactive commit selector. Pre-fill slay β¨
π«Ά Cute sign-off: the footer here isswitchandgit-branchless-switch(1)β no extra source/version or date line was printed, so thatβs the whole footer vibe. Bye bestie! πβ¨
π¦ where this page comes from
- arch rolling: git-branchless 0.11.1-2 Β· Apache-2.0 AND MIT
- nixpkgs unstable: git-branchless 0.11.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms