Checkout a branch.