create a new master branch git in a repository via command line code example Example: create new branch git from master git checkout -b new-branch-name