set branch from other branch in git code example Example: git switch branch to another branch git checkout <name>