Search code examples
mercurialrepositorytortoisehg

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?


Solution

  • 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