Revert a branch to a previous commit