How do you “rollback” last commit on Mercurial?

后端 未结 3 476
梦毁少年i
梦毁少年i 2021-02-01 00:36

I have a Mercurial repository that I use in local only... It\'s for my personal usage (so I don\'t \"push\" anywhere).

I made a commit with 3 files, but after that I und

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 01:10

    You just need this command:

    hg rollback
    

    See: http://hgbook.red-bean.com/read/finding-and-fixing-mistakes.html.

    (Technically, this is deprecated as of version 2.7, August 2013, but I've yet to see an alternative that does exactly the same thing.)

提交回复
热议问题