Git checkout might not be the recommended command for working with branches, in which case we be use git branch and git switch instead.