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

查看:154
本文介绍了我如何在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. Fork 该项目

  2. 对存储库进行一次或多次很好的评论和干净的提交。如果您要修改多个零件或功能,您可以在此创建一个新分支。

  3. 执行 pull request in github's web interface。

  1. Fork the project
  2. Make one or more well commented and clean commits to the repository. You can make a new branch here if you are modifying more than one part or feature.
  3. Perform a pull request in github's web interface.

如果是新功能请求,首先开始编码。请记住发布一个问题以讨论新功能。

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天全站免登陆