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