Cloning specific branch

前端 未结 7 872
南笙
南笙 2021-01-31 09:40

I am new to git version control and I dont know how to clone / pull a specific branch of a repo . Trying to get the branch master of the project, but it defaults to

7条回答
  •  温柔的废话
    2021-01-31 09:50

    Please try like this : git clone --single-branch --branch

    replace with your branch and with your url.

    url will be like http://username@git.test.com:portno/yourrepo.git.

提交回复
热议问题