Mercurial undo last commit

后端 未结 8 744
既然无缘
既然无缘 2020-12-02 06:11

How can I undo my last accidentally commited (not pushed) change in Mercurial?

If possible, a way to do so with TortoiseHg would be prefered.

Update<

8条回答
  •  一向
    一向 (楼主)
    2020-12-02 06:41

    hg rollback is what you want.

    In TortoiseHg, the hg rollback is accomplished in the commit dialog. Open the commit dialog and select "Undo".

    alt text

提交回复
热议问题