branch to master git code example Example 1: make a new branch git git checkout -b branch-name Example 2: create new branch git $ git checkout -b newBranchName