Ready to make your first contribution to a Open Source project?
This tutorial will guide you through the whole process step by step.
- Create a fork of this repository. This will be your personal copy if this project.
- Next, clone (copy) your fork on your local machine. Therefore, copy the web URL of your newly created fork.
- Open a terminal on your machine and execute the following command (this will download your fork into the current location on your machine):
git clone <your-web-url>
- Navigate into the downloaded fork:
cd Quiz-to-Contribute-OSS
- Typically GitHub repositories have main branch protection rules employed. Therefore, you need to merge your changes via a "Pull Request (PR)" into the main branch. For that, create a new branch (note that switch is a rather new way of creating a new branch):
git switch -c <branch-name>
- Now you are ready to make your changes in the code base.
- In the list_of_contributors file, add your name and a link to your GitHub profile.
- Once you are done, you can add, commit, and push your changes to your remote fork (make sure to follow the commit message conventions from here):
git add .
git commit -m "docs: <insert-meaningful-message>"
git push -u origin <branch-name>
- In GitHub, you should now see the message, that you have pushed a new commit. Click on "Create Pull Request" to request your changes to be merged into the main branch.
- I will now check your PR and approve it, if everything looks fine. Otherwise, I will write a comment on your PR thread to resolve the issue with you together.
- Now, your changes are in the main branch.
🎈 You have successfully completed your first contribution! 🎈
If you want, you can proceed with Level 2️⃣🌟 - Contribute