how to create new branch from origin with another branch in git code example Example: create new branch from origin git checkout -b nameOfBranch origin/nameOfBranch