switch brancj git code example Example: canging branch in git $ git checkout <existing_branch> $ git checkout -b <new_branch>