Here are the steps to commit a change to an open source project on github.
Fork the repo by clicking the fork button on the github website
Clone the repository to your machine
git clone https://github.com/yourusername/project
Add the original git repository as an upstream remote.
git remote add upstream https://github.com/originaluser/project
Now if you want to get the latest changes from the original repository, you can use:
git pull upstream master
Create a feature branch to do your changes
git checkout -b newbranch
Modify the code and commit to the feature branch. Try to keep your commits clear and concise.
Push your modifications to your remote
git push origin newbranch
Back on github, click the Pull Request button
Select the commits you want to include, write a message and submit.
That’s it !