Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial - convert normal repo to bare repo

i´ve installed TortoiseHg with Mercurial. Another programmer of our department created a "normal" hg repo a few months ago. Now I have to change this repo into a "bare" one. Is this even possible?

like image 931
prototype0815 Avatar asked Dec 15 '14 08:12

prototype0815


1 Answers

To create a bare repo when cloning use the no update flag when cloning i.e. hg clone --noupdate ...

To convert to a bare repo update to the "null" branch use hg update null

like image 113
Sukhvinder Bhullar Avatar answered Oct 30 '22 18:10

Sukhvinder Bhullar