Mercurial clone from a branch

后端 未结 5 695
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-24 06:22

We have a repository with three named branches, I wanted to clone one of the branches. Is there a mercurial command to do that? If I provide the path (of branch) with hg clo

5条回答
  •  死守一世寂寞
    2020-12-24 06:30

    I know that this post is very old, but I had the same question. I found this trick:

    hg clone /path/to/your/repo -r 0
    hg pull -u -b branchname
    

提交回复
热议问题