✨ First Contributions
This project aims to simplify and guide the way beginners make their first contribution. If you're looking to make your first contribution, follow the steps below.
If you're not comfortable with the command line, here are tutorials using GUI tools.
Fork this Repository
- Install Git if it's not already on your machine.
- Fork this repository by clicking the Fork button at the top of this page. This will create a copy of this repository in your GitHub account.
Clone the Repository
Now clone the forked repository to your local machine.
- Go to your GitHub account and open the forked repository.
- Click on the Code button, then go to the SSH tab and click the copy icon.
- Open a terminal and run:
git clone *Emails are not allowed*:your-username/first-contributions.git
Create a Branch
Change to the repository directory:
bash
Copy
Edit
cd first-contributions
Create a new branch:
bash
Copy
Edit
git switch -c your-new-branch-name
For example:
bash
Copy
Edit
git switch -c add-alonzo-church
If git switch gives an error, you can use git checkout -b your-new-branch-name instead.
✍️ Make Changes and Commit
Open the Contributors.md file in a text editor.
Add your name somewhere in the middle of the list (not at the top or bottom).
Save the file.
Check the changes:
bash
Copy
Edit
git status
Stage the file:
bash
Copy
Edit
git add Contributors.md
Commit the change:
bash
Copy
Edit
git commit -m "Add your-name to Contributors list"
Replace your-name with your actual name.
Push Changes to GitHub
Push your branch:
bash
Copy
Edit
git push -u origin your-branch-name
Replace your-branch-name with the name of your created branch.
❗ If you face errors while pushing, consult GitHub's troubleshooting documentation.
Submit Your Changes for Review
Go to your repository on GitHub.
Click the Compare & pull request button.
Submit the pull request.
Where to Go from Here?
Congrats! You just completed the standard fork -> clone -> edit -> pull request workflow!
Celebrate and share your contribution!
Want more practice? Check out more code contribution opportunities.
We've compiled a list of beginner-friendly projects to contribute to. Browse the list in our web app.
Happy contributing!