update "Checkout" and "Committing with a Detached HEAD" sections