method for rollback discard branch or commit