Discard all and get clean copy of latest revision?

后端 未结 5 2136
Happy的楠姐
Happy的楠姐 2021-01-29 19:21

I\'m moving a build process to use mercurial and want to get the working directory back to the state of the tip revision. Earlier runs of the build process will have modified so

5条回答
  •  渐次进展
    2021-01-29 19:32

    hg up -C
    

    This will remove all the changes and update to the latest head in the current branch.

    And you can turn on purge extension to be able to remove all unversioned files too.

提交回复
热议问题