Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete local Hg repository

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

like image 382
Zerho Avatar asked May 13 '11 11:05

Zerho


People also ask

How do I cancel my Mercurial repository?

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.

How do I delete a branch in Mercurial?

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.


1 Answers

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

like image 193
Rudi Avatar answered Oct 23 '22 19:10

Rudi