Fork from a branch in github

前端 未结 8 721
名媛妹妹
名媛妹妹 2021-01-30 09:26

Is there a way to fork from a specific branch on GitHub? … For example, moodle has many branches (1.9, 2.0 … and so on). Can a clone be performed of just branch 1.9 and not the

8条回答
  •  无人共我
    2021-01-30 09:31

    Yes, you can clone the single branch. For example, you have a branch named release1.0. If you would like to clone this branch into your pc then use the following line of code:

    $ git clone git@bitbucket.org:git_username/git_repository_example -b release1.0 --single-branch
    

提交回复
热议问题