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
Jonathan: Removing it is quite proper. We try to keep simple things simple in Mercurial: hg init creates . hg for you, and rm -r . hg will undo that.
You cannot. You can close the branch to hide it from the list of active branches, but you cannot completely delete it. This happens because in mercurial and in git the "branch" term means different things.
Removing the .hg folder is sufficient. You will lose the VCS metadata (project history, previous versions of all files), which is stored there.
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