【发布时间】:2012-08-27 14:18:57
【问题描述】:
我已被添加到具有一些私有存储库的组织中,我需要向他们发送包含一些更改的拉取请求,但我不知道是否可以。
我在 GitHub 上没有付费帐户,那么我如何分叉该私人仓库来修改和发送拉取请求?
【问题讨论】:
标签: github
我已被添加到具有一些私有存储库的组织中,我需要向他们发送包含一些更改的拉取请求,但我不知道是否可以。
我在 GitHub 上没有付费帐户,那么我如何分叉该私人仓库来修改和发送拉取请求?
【问题讨论】:
标签: github
如“If I fork someone else's private Github repo into my account, is it going to appear in my account as a public repo?”中所述,您可以分叉一个私人回购(您被添加为私人用户)。生成的 repo 仍然是私有的,您将能够提出 pull-requests。
【讨论】:
您可以从私有存储库中的分支发出拉取请求,而无需分叉。
我们开始使用的工作流程是:
1. clone the private repository
2. make a branch
3. work on the branch
4. push the branch to the private repository
5. goto GitHub and create a pull request from the branch on the private repository
6. someone else reviews the the pull request and decides to merge it with master on GitHub
7. delete the branch unless there was a problem and it was not merged then go back to #3
【讨论】:
fork 是一个重载的词。在 GitHub 的上下文中,当您按下该 fork 按钮时,它会询问您要将存储库克隆到 GitHub 上的哪个位置。我建议你将它克隆到你的本地机器上工作并向上推以创建一个 PR,事实证明,这也称为分叉。您无需将其克隆到您的 GitHub 帐户(点击该 Fork 按钮)即可创建 PR。