Original URL: http://www.cnblogs.com/astwish/articles/3548844.html
As an IT person, learning through GitHub is the fastest way to grow. We can browse other people's good code. But it's a good idea to contribute to someone else's code just because it's slow to watch or grow. For example, if we look at the film, many blockbusters are suppressed by the free translation of subtitle groups. Why would they do that? Because they are intelligent college students, in order to improve the level of listening, improve the level of translation to do so! The Chinese are very practical! So contribute code, participate in open source projects are beneficial harmless! All right, let's get started!
How to contribute to your strength
First you have to have your own GitHub account , register A, very simple, just user name, email, password, mailbox just used to retrieve the password, do not do verification. So you can use it immediately after registration! For example, I am now registering a new model named Jslouvre account.
Then search my project--mass Framework
The first one is, click into the project and then point to the fork button above, which copies a copy of my project as your own project
Create success!
Then is to modify the code, this should be found in their own real loopholes or improvements in the place to do! You can't change it if you want. To read through the part you want to change, read through the whole frame if necessary. Therefore, the best novice to find the domestic master framework for learning, a Chinese note is more cordial, and secondly also facilitate the next exchange. Usually we make changes locally in clone git, which involves learning from other tools and commands. However, GitHub completely allows you to make changes, submit, and merge online.
For example, if you find that the data module's annotations are not the same as the mass module, you need to merge together and move the annotations outside the function into the inside. (a more meaningful way is to open http://www.jshint.com/and find a lot of small problems.)
Become an edit state, but not very useful. You must learn how to use Tortoisegit or sublime Text 2 to download GitHub projects locally, modify, submit, pull request!
Please carefully write down your changelog to facilitate the original framework of the author's review.
What to look like after a successful change:
The next step is very important, is to submit your changes to the original author. Click the Pull request button above!
The red area is the original author of the project, the goal you want to contribute, the bright blue area for your project, the black place to fill in the title and the must description, click on the lower right of the green area of the button to submit!
Then come down to the framework of the author of the matter, I will see your submission in my project. In case you are fortunate enough to be someone else to contribute code, do this job.
Click the big Pull request (2) button in the middle to another page with a green highlighted merge pull request button. The author looks at your changes and thinks you can merge them on the dot.
Finally, you will see the code of your contribution on the original project!
How to keep your project in sync with the original author's project!
I often see a lot of people, only fork once, submitted a change do not know how to do! So the original framework author is very diligent, the day will be submitted n times, one weeks later, many files have been changed, and those code contributors can not be modified one by one. So we're still using the pull request button above.
This time you put your project on the left, the original frame author on the right, in the selection process, you will find that the original framework author has many contributors. Here I hope that everyone must browse commits and files Changed to learn! This is the biggest value of GitHub! We can improve our coding level by grasping the improvement of others ' code. This will involve a lot of coding skills!
Fill in the necessary instructions, then click the Send Pull Request button below.
Soon you'll see a bright green button at the bottom of the comment area.
Continue to let you confirm, no problem on the point!
This will synchronize successfully!!!!!!
your own procedure is as follows:
"Go" How to fork a project on GitHub to contribute code and synchronize the original author's changes--good