reset the branch to checkout