git checkout

Switch branches or restore files

Branching

Syntax

git checkout <branch|file>

Examples

Common flags & options

Related tools

Other Git commands