How do I git reset --hard HEAD on Mercurial?

后端 未结 4 1005
面向向阳花
面向向阳花 2021-02-01 00:11

I\'m a Git user trying to use Mercurial.

Here\'s what happened: I did a hg backout on a changeset I wanted to revert. That created a new head, so hg instruc

4条回答
  •  清歌不尽
    2021-02-01 01:01

    From git, commands:

    git reset --hard     # reset to last commit    
    git clean -df        # delete untracked files
    

    are equal to

    hg update --clean    # reset to last commit  
    hg purge             # delete untracked files
    

提交回复
热议问题