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