A great way to get involved in open source is to contribute to the existing projects you’re using. GitHub is home to more than 5 million open source projects. There are projects for every skill set like recipes, HTML/CSS, Ruby, Astrophysics and many more. This guide will cover what you might find in a typical project and how to make a great contribution.
We recommend that you start by finding a project that you’re already (or are interested in) using. Here are a few great places to look:
Below are some elements you’re likely to come across in an open source project on GitHub.
Projects often have a community around them, made up of other users in different (formal or informal) roles:
The what’s-what of common files in projects.
Nearly all GitHub projects include a README.md
file.
The readme provides a lay of the land for a project with details on how to use,
build and sometimes contribute to a project.
Projects and project maintainers vary, so the best way to contribute will
also vary. Keep your eye open for a doc labeled CONTRIBUTING
.
Contributing docs detail the specifics about how a project’s maintainer would
like to see patches or features contributed. This can include what tests to
write, code syntax style or areas to focus on for patches.
A LICENSE
file, well, is the license for the project.
An open source project’s license informs users what they can and can’t do (e.g.,
use, modify, redistribute), and contributors, what they are allowing others to
do. There are many ways to license and open source project, you can read more
about what each license means at choosealicense.com.
Many larger projects go beyond a readme to give instructions for how people can use their project. In such cases you’ll often find a link to another file or a folder named ‘docs’ in the repository.
Alternatively, the repository may instead use the GitHub wiki to break down documentation.
Now that you’ve found the material for understanding the project, here is how you can take action.
If you find a bug in a project you’re using (and you don’t know how to fix it), have trouble following the documentation or have a question about the project – create an issue! There’s nothing to it and whatever issue you’re having, you’re likely not the only one, so others will find your issue helpful, too. For more information on how issues work, check out our Issues guide.
```
so that it
renders nicely.If you’re able to patch the bug or add the feature yourself – fantastic, make a pull request with the code! Be sure you’ve read any documents on contributing, understand the license and have signed a CLA if required. Once you’ve submitted a pull request the maintainer(s) can compare your branch to the existing one and decide whether or not to incorporate (pull in) your changes.
Once you’ve opened a pull request a discussion will start around your proposed changes. Other contributors and users may chime in, but ultimately the decision is made by the maintainer(s). You may be asked to make some changes to your pull request, if so, add more commits to your branch and push them – they’ll automatically go into the existing pull request.
If your pull request is merged – great! If it is not, no sweat, it may not be what the project maintainer had in mind, or they were already working on it. This happens, so our recommendation is to take any feedback you’ve received and go forth and pull request again – or create your own open source project.
Contributing to Open Source on GitHub(转),布布扣,bubuko.com
Contributing to Open Source on GitHub(转)
原文:http://www.cnblogs.com/scottding/p/3660059.html