ホーム / Would you like to contribute to open-source software? Here's how we can get started.

Would you like to contribute to open-source software? Here's how we can get started.

2024/12/22 5:00:19
GitとGitHubについて説明し、プロジェクトの編集や貢献方法を詳しく解説。GitHubを使用してファイルを編集し、修正内容をPull Requestとして提出するプロセスが説明されています。核心的な事実は、開発者がコードを管理し、チームで協力するためのGitと、プロジェクトのリポジトリを作成・貢献するためのGitHubについてです。
Would you like to contribute to open-source software? Here's how we can get started.
以下に翻訳結果を提供します:

What is Git? What is GitHub?

Git is the most popular version control system in the world. It allows developers to track changes, collaborate on projects, and maintain a history of their work.

Finding Projects

Many projects have simple text files that can be improved with basic editing and writing skills. These pages often include help files, web content, and other resources. Projects typically appreciate corrections, and many times, they need assistance with translating text into other languages.

Editing Files

If you directly accessed the file, you can skip this first step. Otherwise, use the repository's file browser to find the file you want to edit. Click on the file name, and you should see a screen like this:

Click the pen icon on the right side of the page. GitHub will inform you that you need to fork the repository before editing it from your account.

This creates a copy (fork) of the project under your account. Once you make changes, you can submit them as a pull request to the original project owner.

Use GitHub's browser-based editor to make edits. It is a simple text box with basic features like syntax highlighting. Avoid large changes or complex edits; this is suitable for simple corrections (typos, formatting fixes, etc.).

Commit Changes

Click the "Commit changes" button after updating the file. In the text box that appears next, add a useful "commit message." You don't need to explain in detail what was changed; for now, simply mention something like "typo fix" or "broken link replacement" is fine.

Opening a Pull Request

Click "Propose changes." This should take you to the "Comparison" page. Here, details of your update will be displayed. Next, click "Create pull request."

The next page will ask for a title and description again. Since you made a single change in one file, click the "Create pull request" button as soon as possible to continue.

What Happens Next?

The maintainer of the original project will review your changes. If everything is fine, and your changes are accepted, they will merge your changes into their repository. At this point, you have made your first contribution to an open-source project: congratulations!

You can safely delete the forked repository once your pull request is accepted. If you want to contribute in the future, you can keep the fork, but be prepared to learn about updating methods as the original project progresses. Unless you are confident with Git and GitHub, it's recommended to use the above process each time you update the project.

You can contribute to many types of projects without needing to learn more about Git. With GitHub Pages functionality, you can host a free project website and manage it like other repositories. You can make real-time changes to your website directly in the browser.