create new branch and navigate to it git code example Example: create and go to branch git checkout -b <branch_name>