I typed hg init in a directory, but then changed my mind: I’d rather not have this under version control. So how do I undo hg init?
I suppose there is another solution than deleting .hg directories, but I couldn’t find the command. Or is it impossible for mercurial to remove itself from a project?
Why don’t using
rm -rv .hg/on Linux/Unix systems or under MacOSor
rmdir /S .hgon WIndows systems (with the good ol’ cmdline, the first example works under the PowerShell too).It’s simple and effective and does what you want: Removing Mercurial from the project.