GIT-CHECKOUT(1) Git Manual GIT-CHECKOUT(1) NAME git-checkout - Switch branches or restore working tree files SYNOPSIS git checkout [-q] [-f] [-m] [] git checkout [-q] [-f] [-m] --detach [] git checkout [-q] [-f] [-m] [--detach] git checkout [-q] [-f] [-m] [[-b|-B|--orphan] ] [] git checkout [-f] [--] ... git checkout [-f] --pathspec-from-file= [--pathspec-file-nul] git checkout [-f|--ours|--theirs|-m|--conflict=