How to delete local Hg repository

Zerho picture Zerho · May 13, 2011 · Viewed 11.9k times · Source

it's a simple question but i didn't found answers elsewhere. I need to delete a local Hg repository and all related files without deleting the code, is there a proper command? i thought that deleting the .hg folder wasn't enough. thanks

Answer

Rudi picture Rudi · May 13, 2011

Removing the .hg folder is sufficient. You will lose the VCS metadata (project history, previous versions of all files), which is stored there.