[英]How to continue contributing to open-source projets?
The first time I contribute to an open-source project, I 我第一次为开源项目做贡献时,
I am now at this point. 我现在在这一点上。
To contribute to the same project again, what do I do? 要再次为同一项目做出贡献,我该怎么办? (If it matters, I am using GitLab and the public repository is also hosted on GitLab)
(如果重要,我使用的是GitLab,公共存储库也托管在GitLab上)
I could fork the project again into another repository, but this means I would have many copies of the same repository under my account. 我可以将项目再次分叉到另一个存储库中,但这意味着我的帐户下将拥有同一存储库的许多副本。
I could set up repository mirroring (GitLab feature that pulls hourly from the public repository into my own repository), but all commits are counted under "My activity" on the graph. 我可以设置存储库镜像(GitLab功能,每小时将其从公共存储库拉到我自己的存储库中),但是所有提交都计入图表的“我的活动”下。
What is the standard procedure to contribute to an open-source project in which I am not a developer in the public project and already have an outdated, forked version? 如果我不是公共项目的开发人员并且已经拥有过时的分叉版本,那么对开源项目做出贡献的标准程序是什么?
You can reuse your fork, since you can update it with the content of "upstream" , with "upstream" being the name of the original remote repo (the one you have forked initially) 您可以重复使用fork, 因为可以使用“ upstream”的内容对其进行更新 ,其中“ upstream”是原始远程仓库(最初为您创建的仓库)的名称。
cd /path/to/your/fork/clone
git add upstream /url/original/repo
git fetch upstream
git checkout -b newBranch upstream/master
git push -u origin newBranch
You now have a new branch, based on the very latest of upstream/master, from which you can: 现在,您将基于最新的上游/主服务器创建一个新分支,从中可以:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.