First Contributions

First Contributions

BackerLeader posted 2 min read

✨ 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

  1. Install Git if it's not already on your machine.
  2. 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.

  1. Go to your GitHub account and open the forked repository.
  2. Click on the Code button, then go to the SSH tab and click the copy icon.
  3. 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! 

If you read this far, tweet to the author to show them you care. Tweet a Thanks

More Posts

Profile Keeper: Effortlessly Manage, Access, and Save All Your Online Accounts & Important Sites in One Place

Elmer Urbina - May 16

I Built tip.md to Help Open-Source Devs Get Crypto Tips via GitHub READMEs—What Do You Think?

tipdotmd - May 15

The Ultimate Guide to Mastering Git Commands: Everything You Need to Know

Hanzla Baig Dev - Feb 21

Differentiating Network Architecture: An Overview of 2-Tier and 3-Tier Network Architectures

harshit_rwt - Jan 19

ProfileKeeper: Simplify and Organize Your Digital Profiles in One Place

Elmer Urbina - Jan 17
chevron_left