Discard all and get clean copy of latest revision?

后端 未结 5 2092
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:50

    If you're looking for a method that's easy, then you might want to try this.

    I for myself can hardly remember commandlines for all of my tools, so I tend to do it using the UI:


    1. First, select "commit"

    2. Then, display ignored files. If you have uncommitted changes, hide them.

    3. Now, select all of them and click "Delete Unversioned".

    Done. It's a procedure that is far easier to remember than commandline stuff.

提交回复
热议问题