git name new branch syntax code example Example 1: create new branch git $ git checkout -b [name_of_your_new_branch] Example 2: branch list in git git branch -a