GitHub克隆从拉请求?
问题描述:
我想从GitHub克隆一个存储库。问题是我不想要主分支;我希望这个未经批准的拉取请求。
I would like to clone a repository from GitHub. The problem is I don't want the main branch; I want the version in this unapproved pull request.
是否可以克隆拉请求版本而不是主存储库?
Is it possible for me to clone the pull request version instead of the main repository?
答
您可以通过使用 git clone
命令中的 -b
选项克隆所需的分支。
You can clone the branch you want by using the -b
option in the git clone
command.
在你的情况中,你想克隆的分支是pull请求的源分支(feature / mongoose-support):
In your case, the branch you want to clone is the source branch of the pull request (feature/mongoose-support):
git clone https://github.com/berstend/frappe.git -b feature/mongoose-support /my_clone