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