how to add git branch in git bash code example Example 1: create a branch command $ git branch -a Example 2: create a branch command $ git fetch [name_of_your_remote]