Mercurial clone from a branch

后端 未结 5 688
爱一瞬间的悲伤
爱一瞬间的悲伤 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:49

    I'm using Mercurial-4.0.2. In that we can specify the branch name by appending branch name with a # symbol in the clone url.

    e.g.

    hg clone https://user@cloneurl/my_product#MY_BRANCH
    
    hg clone --verbose https://user@cloneurl/my_product#MY_BRANCH "C:\myCode"
    

提交回复
热议问题