commit on a new branch git code example Example: creating a branch in git git checkout -b <branch_name>