Making your first Open Source Pull Request | Github
Last Updated :
29 Sep, 2022
Improve
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
- 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






- 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