git checkout commanfd code example
Example 1: git checkout
git checkout -b origin/branch-name
git checkout -b branch-name
Example 2: "git checkout -b" example
$ git checkout -b new-branch --track origin/develop
git checkout -b origin/branch-name
git checkout -b branch-name
$ git checkout -b new-branch --track origin/develop