Mercurial: how do I revert to a particular revision?

前端 未结 3 1353
隐瞒了意图╮
隐瞒了意图╮ 2021-02-18 15:18

I\'m working on a live server. I\'ve updated to tip and it\'s caused problems: I need to revert back to a particular changeset (388) where things were OK.

I have no chan

3条回答
  •  温柔的废话
    2021-02-18 15:39

    Just use the command below, to get to a revision.

    hg revert -r REV
    

    It's conflicting with --all.

    To kill all local changes, --all should work.

    hg revert --all
    

    Don't use rollback. It's a irreversible procedure, so should be used with care.

    EDIT

    You can update with --clean option. That will discard any uncommitted change. And then update to some changeset.

提交回复
热议问题