create new branch from origin main branch code example Example: create new branch from origin git checkout -b nameOfBranch origin/nameOfBranch