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