Mercurial - 将正常仓库转换为裸仓库

pro*_*815 7 mercurial repository tortoisehg

我和Mercurial一起安装了TortoiseHg.几个月前,我们部门的另一位程序员创建了一个"正常"的hg仓库.现在我必须将这个回购改为"裸"回购.这甚至可能吗?

小智 12

在克隆时创建一个裸存储库在克隆时使用无更新标志即 hg clone --noupdate ...

要转换为裸仓库更新到"null"分支使用 hg update null

  • 好答案!小细节:`null`不是分支,是你创建的第一个变更集之前的变更集(第一个修订版的祖先). (2认同)