Fork from a branch in github

前端 未结 8 678
名媛妹妹
名媛妹妹 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:49

    Cloning means that you create a copy of the whole repository in your account including all branches and tags. However you are free to switch and track branches however you like.

    0 讨论(0)
  • 2021-01-30 09:51

    For those who don't like working with command-line. Here is a simple guide using the desktop client for GitHub:

    1. Click the fork button of the repo on GitHub.com:

    2. Make sure you have the desktop client installed

    3. Click this button:

    4. Clone the repo

    1. In the desktop client, select the desired branch

    1. Select the branch you'd like to work on and you're done

    0 讨论(0)
提交回复
热议问题