Cloning specific branch

前端 未结 7 890
南笙
南笙 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:51

    To clone a particular branch in a git repository

    - Command: git clone "repository_url" -b "branch_name"
    - Example: git clone https://gitlab.com/amm.kazi/yusufoverseas.git -b routes

提交回复
热议问题