Before doing that, note that if your working directory or staging area has uncommitted changes that conflict with the branch you’re checking out, Git won’t let you switch branches. You have to commit your changes, or get around this by stashing.
Before doing that, note that if your working directory or staging area has uncommitted changes that conflict with the branch you’re checking out, Git won’t let you switch branches. You have to commit your changes, or get around this by stashing.