DEV Community

Cover image for How do you contribute to open-source projects?
Sheik Mostafizur
Sheik Mostafizur

Posted on

How do you contribute to open-source projects?

Find a Project

Look for a project you're passionate about or use regularly. Check platforms like GitHub, GitLab, or Bitbucket.

Image description

Understand the Project

Go through the README file, guidelines, and documentation to understand the project's goals and how contributions work.

Image description

Image description

Fork the Repository

Click on the "Fork" button on GitHub to create a copy of the project in your account. This allows you to make changes without affecting the original project.

Image description

Clone the Repository

Clone the forked repository to your local machine using the git clone command.

Ex:

git clone https://github.com//edust.git
cd edust

Make Contributions

Modify the code, fix bugs, add new features, or improve the documentation based on the project needs.

Commit Changes

After making your changes, commit them using the following commands:

Ex:

git add .
git commit -m "Describe your changes"

Push Changes

Push the changes to your forked repository:
git push

Submit a Pull Request (PR)

Go to the forked repository and click "New Pull Request" to request that your changes be merged. Provide a clear description of what you did.

Image description

Image description

Image description

Celebrate!

Once your PR is merged, you've officially contributed to open source! 🎉

Top comments (0)