Cloning specific branch

前端 未结 7 888
南笙
南笙 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 10:14

    you can use this command for particular branch clone :

    git clone  -b 
    
    Eg: git clone https://www.github.com/Repo/FirstRepo -b master
    

提交回复
热议问题