how to switch branches into your master in git code example Example: how to switch branches in git git checkout [branch name]