我如何在 GitHub 中为他人的代码做出贡献? [英] How do I contribute to other's code in GitHub?

查看:34
本文介绍了我如何在 GitHub 中为他人的代码做出贡献?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为 GitHub 中的某个项目做出贡献.我应该分叉吗?分支吗?推荐什么以及如何做?

I would like to contribute to a certain project in GitHub. Should I fork it? Branch it? What is recommended and how to do it?

推荐答案

理想情况下:

  1. 分叉项目
  2. 向存储库提交一个或多个注释良好且干净的提交.如果您要修改多个部件或功能,您可以在此处创建一个新分支.
  3. 在 github 的网络界面中执行拉取请求.

如果是新的Feature请求,不要先开始编码.记得发布一个问题来讨论新功能.

if it is a new Feature request, don't start the coding first. Remember to post an issue to discuss the new feature.

如果该功能得到了很好的讨论并且有一些 +1 或项目所有者批准了它,请将问题分配给您自己,然后执行上述步骤.

If the feature is well discuss and there are some +1 or the project owner approved it, assign the issue to yourself, then do the steps above.

有些项目不会使用拉取请求系统.与作者或邮件列表联系,了解将代码重新引入项目的最佳方式.

Some projects won't use the pull request system. Check with the author or mailing list on the best way to get your code back into the project.

这篇关于我如何在 GitHub 中为他人的代码做出贡献?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆