using git 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>
Example 3: "git checkout -b" example
$ git checkout -b new-branch --track origin/develop