Does Mercurial have an equivalent to git clean?

后端 未结 4 563
耶瑟儿~
耶瑟儿~ 2021-02-05 00:49

hg clean does not seem to exist, which kinda bothers me. Is this a feature that Mercurial doesn\'t have or did they just name it differently?

4条回答
  •  时光说笑
    2021-02-05 01:29

    The extension is already included in mercurial, but you still have to activate it.

    It's as simple as creating a .hgrc file in your home directory (e.g. Win 7: C:\Users\«yourusername»\.hgrc) and adding the following content to that file:

    [extensions] 
    purge =
    

    (Home directory is ~/.hgrc for most other desktop operating systems (Unix, Gnu/Linux, Mac osx, BSD, etc.)

提交回复
热议问题