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