how to create a new branch in cmd code example Example: command to create a new branch in git $ git checkout -b <branch-name>