github cli branch code example Example 1: create a branch command $ git branch -a Example 2: create a branch command $ git push origin :[name_of_your_new_branch]