如何为GitHub开放软件存储库做出贡献? [英] How to contribute to a GitHub open software repository?

查看:61
本文介绍了如何为GitHub开放软件存储库做出贡献?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读许多教程,试图找出使用GitHub本身为GitHub存储库做出贡献的工作流程的简单步骤(我是Windows程序员,所以我发现本地git CLI非常尴尬,以及比在GitHub中完全远程工作要复杂得多.

I've been reading many tutorials, trying to figure out easy steps to the workflow for contributing to a GitHub repository using GitHub itself (I'm a Windows programmer, so I find the local git CLI extremely awkward, as well as much more complicated than working entirely remotely in GitHub).

我将在下面的答案中找到发现并发展的步骤.

I will post the steps as I discover and develop them in the answer below.

请,我不能独自执行此操作,因为我几乎不知道自己在做什么.建议对我的答案进行编辑,或发表评论,我将进行编辑.

Please, I cannot do this on my own, as I barely know what I'm doing. Suggest edits to my answer, or post comments and I will edit.

推荐答案

轻松为现有GitHub存储库做出贡献的步骤:

  1. 如果尚无问题发布来描述问题或代码更改,请在问题"部分的GitHub存储库(repo)上创建一个.

  1. If there is not already an Issue posting describing the problem or code change, create one on the GitHub repository (repo) in the Issues section.

创建自己的GitHub帐户(如果您没有).

Create your own GitHub account, if you do not have one.

返回GitHub存储库(repo)并单击"Fork"按钮.这样会在您的帐户中创建一个完整的存储库副本,作为您自己的存储库(具有相同的存储库名称).

Go back to the GitHub repository (repo) and click the "Fork" button. This will create a copy of the entire repo in your account as your own repo with the same repo name.

在GitHub上的新仓库中,单击分支:主"按钮.输入新分支的名称(包括发行号),然后按Enter键以创建用于更改的新分支.

In your new repo on GitHub, click on the button "Branch: master". Enter a name of your new branch (include the issue number) and press Enter to create a new branch for your changes.

在您的新仓库和新分支中,单击要编辑的文件,或单击创建新文件"按钮.进行更改.

In your new repo and your new branch, click on the file you wish to edit or click the "Create new file" button. Make your changes.

对更改满意后,向下滚动到提交新文件"部分.标题可以类似于创建的文件FILENAME".添加更改说明,包括问题编号.单击提交新文件"按钮以提交更改,然后再进行测试.对其他文件重复以上操作.

When you are happy with your changes, scroll down to the "Commit new file" section. The title can be something like "Created file FILENAME". Add a description of your changes, including the issue number. Click "Commit new file" button to commit your change before testing it. Repeat for any additional files.

在存储库(代码"部分)中,单击绿色的克隆或下载"按钮.下载一个zip文件以在本地使用(如果需要),并在本地测试您的更改.

At the repo (Code section), click the green "Clone or download" button. Download a zip file to use locally to build if needed and test your changes locally.

在回购(代码"部分),您现在应该看到一个通知,您最近推送的分支:".这意味着您在自己的存储库中所做的编辑创建了一个最近推送的分支".该通知内有一个绿色按钮比较和提取请求".深呼吸并推动它.您现在将位于打开请求请求"页面.这将自动请求仓库的所有者接受您的更改.

At the repo (Code section), you should now see a notice, "Your recently pushed branches:". This means that your edits in your own repo created a "recently pushed branch". Inside this notice is a green button "Compare & pull request". Take a deep breath and push it. You will now be at the "Open a pull request" page. This will automatically request that the owner of the repo accept your changes.

如果看到清单",请对其进行编辑以反映到目前为止的工作.否则,请参考相关的问题"发布详细描述您的更改.

If you see a "checklist", edit it to reflect your work so far. Otherwise, describe your changes in detail, referencing the associated Issue posting.

单击绿色的提交请求"按钮.这会将您的条目发布在有关此请求的对话中.如果没有编辑冲突,您还应该看到一个绿色的选中标记图标,并显示此分支与基础分支没有冲突"的字样.

Click the green "Submit pull request" button. This posts your entry in a conversation about this request. If there are no edit conflicts, you should also see a green checkmark icon and the words "This branch has no conflicts with the base branch".

等待回购所有者的回复.

Wait for a response from the repo owner.

据我所知.

这篇关于如何为GitHub开放软件存储库做出贡献?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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