Cloning specific branch

前端 未结 7 831
南笙
南笙 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 <url of repo> -b <branch name to be cloned>
    
    Eg: git clone https://www.github.com/Repo/FirstRepo -b master
    
    0 讨论(0)
提交回复
热议问题