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?
Mercurial's big advantage is that it's easy to learn and use, which is useful for less-technical content contributors. In the Git vs. Mercurial debate, Git is the clear choice for pure web and mobile-application development.
This is the Hg-Git plugin for Mercurial, adding the ability to push to and pull from a Git server repository from Mercurial. The Big Idea. The Hg-Git plugin can convert commits/changesets losslessly from one system to another, so you can push via a Mercurial repository and another Mercurial client can pull it.
hg purge --all will delete all un-tracked and ignored files. This is useful for cleaning up in-source builds.
There is no equivalent to git clean
in the core Mercurial package.
However, the hg purge
extension does what you are after.
There is an open issue to make this extension part of the core package.
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.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With