HG: Undo a commit from history

前端 未结 2 1753
温柔的废话
温柔的废话 2020-12-29 03:07

I have a HG repository with revs 1, 2, 3, 4, 5 and 6.

When I committed rev 4, I unknowingly botched some changes in rev3 that I should not have. I did not notice th

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-29 03:37

    You want hg backout

    Revert/undo the effect of an earlier changeset...

    Backout works by applying a changeset that's the opposite of the changeset to be backed out. That new changeset is committed to the repository, and eventually merged...

提交回复
热议问题