git commit checkout code example
Example 1: git checkout
git checkout -b origin/branch-name
git checkout -b branch-name
Example 2: git checkout commit
git checkout <commit>
git checkout -b origin/branch-name
git checkout -b branch-name
git checkout <commit>