Checking out branch before looking at latest commits. This is to avoid a detached head.