Github - 叉私人回购

时间:2012-09-02 16:36:37

标签: github

我已经被添加到一个拥有一些私有存储库的组织中,我需要向他们发送带有一些更改的拉取请求,但我不知道是否可以。

我在GitHub上没有付费帐户,那么如何分配该私人仓库以修改和发送拉取请求?

2 个答案:

答案 0 :(得分:29)

如“If I fork someone else's private Github repo into my account, is it going to appear in my account as a public repo?”中所述,您可以分叉私人仓库(您作为私人用户被添加),即使您没有为私人仓库付款。

由此产生的回购仍将是私有的,您将能够提出拉动请求。

答案 1 :(得分:5)

您可以从私有存储库中的分支发出拉取请求,而无需将其分叉。

我们开始使用的工作流程是:

 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