CheckoutBranchOpts
CheckoutBranchOpts =
object
Defined in: src/core/repo.ts:587
Options for git checkout (branch switching mode)
Used for: git checkout <branch>
Properties
conflict?
optionalconflict:"merge"|"diff3"|"zdiff3"
Defined in: src/core/repo.ts:609
Conflict style for merge conflicts
createBranch?
optionalcreateBranch:boolean
Defined in: src/core/repo.ts:591
Create new branch
createReflog?
optionalcreateReflog:boolean
Defined in: src/core/repo.ts:599
Create reflog for new branch
detach?
optionaldetach:boolean
Defined in: src/core/repo.ts:611
Detach HEAD at specified commit
force?
optionalforce:boolean
Defined in: src/core/repo.ts:589
Force checkout (discard local changes)
forceCreateBranch?
optionalforceCreateBranch:boolean
Defined in: src/core/repo.ts:597
Create or reset and checkout branch (like -b but forces)
guess?
optionalguess:boolean
Defined in: src/core/repo.ts:601
Try to guess remote tracking branch if target not found
ignoreOtherWorktrees?
optionalignoreOtherWorktrees:boolean
Defined in: src/core/repo.ts:617
Ignore if branch is checked out in other worktrees
merge?
optionalmerge:boolean
Defined in: src/core/repo.ts:607
Merge local modifications with the new branch
orphan?
optionalorphan:boolean
Defined in: src/core/repo.ts:613
Create new orphan branch
overwriteIgnore?
optionaloverwriteIgnore:boolean
Defined in: src/core/repo.ts:615
Silently overwrite ignored files
quiet?
optionalquiet:boolean
Defined in: src/core/repo.ts:603
Suppress progress reporting
recurseSubmodules?
optionalrecurseSubmodules:boolean
Defined in: src/core/repo.ts:605
Update submodules
startPoint?
optionalstartPoint:string
Defined in: src/core/repo.ts:593
Start point for new branch
track?
optionaltrack:boolean
Defined in: src/core/repo.ts:595
Track remote branch