go to master branch git code example Example 1: create and go to branch git checkout -b Example 2: how to switch to a master which is already added git checkout master