简体   繁体   English

Github - 叉私人回购

[英]Github - Fork a private repo

I have been added to an organization that has some private repositories and I need to send them a pull request with some changes but I don't know if I can. 我已被添加到一个拥有一些私有存储库的组织中,我需要向他们发送一个带有一些更改的pull请求,但我不知道是否可以。

I haven't a paid account on GitHub, so how can I fork that private repo to modify and send pull requests? 我在GitHub上没有付费帐户,那么如何分配私有存储来修改和发送拉取请求?

As mentioned in " If I fork someone else's private Github repo into my account, is it going to appear in my account as a public repo? ", you can fork a private repo (for which you were added as a private user). 正如“ 如果我将其他人的私人Github仓库分配到我的帐户中,它是否会作为公共仓库出现在我的帐户中? ”中提到的,您可以分叉私人仓库(您已将其作为私人用户添加)。 The resulting repo will still be private, and you will be able to make pull-requests. 由此产生的回购仍将是私有的,您将能够提出拉动请求。

You can make a pull request from a branch in the private repository without the need to fork it. 您可以从私有存储库中的分支发出拉取请求,而无需对其进行分叉。

The workflow we are starting to use is: 我们开始使用的工作流程是:

 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM