GIT-SWITCH(1) Git Manual GIT-SWITCH(1) (NAME) git-switch - (SYNOPSIS) git switch [] [--no-guess] git switch [] --detach [] git switch [] (-c|-C) [] git switch [] --orphan (DESCRIPTION) . (working tree) (index) . (tip) . -c -C ( --guess) --detach . ( HEAD). --discard-changes --merge . (OPTIONS) . . . HEAD . ( --detach .) @{-} - git switch git checkout . - @{-1} . . ... (merge base) . HEAD . -c , --create . : $ git branch $ git switch / git switch ( ). -C , --force-create --create . : $ git branch -f __ $ git switch __ -d, --detach . "DETACHED HEAD" git-checkout(1) . --guess, --no-guess ( ) : $ git switch -c --track / checkout.defaultRemote . checkout.defaultRemote=origin origin . checkout.defaultRemote git-config(1) . --guess . --no-guess . checkout.guess . -f, --force --discard-changes. --discard-changes HEAD . . --recurse-submodules . . -m, --merge . (stash) . . (stash list) . git stash drop git stash pop ( git reset --hard). --conflict=