Making your first Open Source Pull Request | Github
Last Updated : 29 Sep, 2022
Open Source softwares are softwares for which the original source code is made freely available and may be redistributed and modified. As a Programmer, we are more interested in how to contribute to their codebase. A lot of newcomers find Open Source to be dreadful and daunting. But worry not, every great Open Source contributor had once been in a place that you are in right now. The following article may be helpful for those who wanna step into the amazing world of Open Source.
Before we begin Following are the prerequisites required before diving into Open Source:
- Good understanding of at-least one programming language of your choice
- Version Control: Git/SVN and Github/Bitbucket/Gitlab
- Learn to read large source code so that it doesn't appear gibberish. This article might help.
- Learn how to use Bug/Issue Trackers
Where to start? Following are a few resources found to be useful for newcomers:
The given resources consists of a list of projects by different organisations which can be filtered on the basis of programming languages used, category of project(Eg. Web, Databases, etc) and difficulty.
Steps to make a Pull Request: Once you decide the repository you want to contribute to or the issue you want to work on, follow the steps in order to make your first pull request:
- Read the CONTRIBUTING.md guide(If present)
- Discuss with the maintainers about the issue, ask questions(if any) and clear doubts. They are lovely people and are always ready to help. You might also ping them over their IRC or Mailing lists.
- Go ahead and Fork the repository
- Clone the repo:
git clone https://github.com/YOUR_USERNAME/PROJECT.git
- Add Upstream:
git remote add upstream https://github.com/PROJECT_USERNAME/PROJECT.git
- Create new branch:
git checkout -b BRANCH_NAME
- Code Code Code: Make required changes
- Push changes:
git push origin BRANCH_NAME
- Create pull request through Github
Some other useful commands:
- To check remote links:
git remote -v
- To check Branches:
git branch
- To delete branch:
git branch -D BRANCH_NAME
- To delete branch on Github:
git push origin --delete BRANCH_NAME
Now all you have to do is wait for your changes to be reviewed by the maintainers and merged(or discarded). It feels good when you find that a piece of your written code is being used by people all around the world on a daily basis. On a side note, you might wanna check out
GSOC. If this doesn't motivate you begin with Open Source, then nothing else might. See Also -
How to get started with Open Source.
Similar Reads
How To Create a Pull Request in GitHub? Pull requests are an important part of collaborative software development on GitHub. They allow developers to propose changes, review code, and discuss improvements before integrating new code into a project. This guide will walk you through the process of creating a pull request in GitHub, ensuring
3 min read
How to Create Pull Request on GitHub Without Using any IDE? Creating a pull request (PR) on GitHub is an important part of collaborative software development. It allows you to propose changes to a project, which can then be reviewed and merged by other contributors. You don't need an Integrated Development Environment (IDE) to create a pull request. In this
2 min read
How to Create a Pull Request on GitHub using Android Studio? Creating a pull request is an important part of collaborating on projects hosted on GitHub. It allows you to propose changes to a repository, enabling others to review, discuss, and merge your changes. Hereâs a step-by-step guide on how to create a pull request on GitHub using Android Studio. Steps
2 min read
How to Contribute to Open Source Projects on GitHub? Contributing to open-source projects is an excellent way to improve your skills, gain experience, and give back to the developer community. GitHub, the largest platform for open-source collaboration, makes it easy to contribute to projects, whether you're fixing bugs, adding features, or improving d
8 min read
How GitHub Sponsors Support Open Source Projects? Open-source software has become a foundation of modern technology, driving innovation and powering everything from small personal projects to large-scale enterprise solutions. While open source relies on the contributions of developers worldwide, sustaining these projects financially can be challeng
7 min read