.ie \n(.g .ds Aq \(aq .el .ds Aq ' .TH git-branchless-switch 1 "switch " .SH NAME switch \- Switch to the provided branch or commit .SH SYNOPSIS \fBswitch\fR [\fB\-i\fR|\fB\-\-interactive\fR] [\fB\-c\fR|\fB\-\-create\fR] [\fB\-f\fR|\fB\-\-force\fR] [\fB\-m\fR|\fB\-\-merge\fR] [\fB\-d\fR|\fB\-\-detach\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fITARGET\fR] .SH DESCRIPTION Switch to the provided branch or commit .SH OPTIONS .TP \fB\-i\fR, \fB\-\-interactive\fR Interactively select a commit to check out .TP \fB\-c\fR, \fB\-\-create\fR=\fIBRANCH_NAME\fR When checking out the target commit, also create a branch with the provided name pointing to that commit .TP \fB\-f\fR, \fB\-\-force\fR Forcibly switch commits, discarding any working copy changes if necessary .TP \fB\-m\fR, \fB\-\-merge\fR If the current working copy changes do not apply cleanly to the target commit, start merge conflict resolution instead of aborting .TP \fB\-d\fR, \fB\-\-detach\fR If the target is a branch, switch to that branch and immediately detach from it .TP \fB\-h\fR, \fB\-\-help\fR Print help (see a summary with \*(Aq\-h\*(Aq) .TP [\fITARGET\fR] 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.