How to create and switch to a new branch $ git checkout -b [branch_name] Command git Description Create a new branch and switch to it immediately. Related How to switch branches How to list branches