git create branhc code example Example 1: how to create a branch in git $ git branch [name of branch] Example 2: create a branch command $ git branch -a