- Fork the project:
In the top-right corner of the page, click Fork.
- Clone the project which you have just forked to your computer
git clone https://github.com/YOUR_GITHUB_USERNAME/PROJECT_NAME
- Make a new branch
(You can use issue, patch-number or your username as the branch name)
git checkout -b <name-of-new-branch>
-
Code and make your changes to the code
-
Stage your changes:
git add FILENAMES
- Commit:
git commit -m "your message"
- Push:
git push origin <name-of-your-branch>
- Once done navigate to your forked repo and click
Compare & Pull Request
button.- This button would bring you to a new page and now you can click on a green button
Create Pull Request
. After creating a Pull Request(PR)
the moderators shall go through your code and merge to the main branch of the project.
- This button would bring you to a new page and now you can click on a green button