create a new branch in a git repository code example Example: how to create a branch in git $ git branch [name of branch]