How to revert a Mercurial hg pull?

前端 未结 5 1831
孤独总比滥情好
孤独总比滥情好 2021-02-13 14:46

If you do an hg pull and then an hg update (or an hg merge), is there a way to back this out? Ie: revert your repository to the state pri

5条回答
  •  清酒与你
    2021-02-13 15:30

    hg --rollback can be used to undo the last transaction so as long as your hg pull is still the most recent transaction then you can use that. This command should be used with care though. See here for some more details.

提交回复
热议问题