Making Your First Open Source Pull Request on GitHub (original) (raw)

Last Updated : 30 Mar, 2026

Open Source software provides publicly accessible source code that can be used, modified, and shared freely. It enables developers to collaborate and contribute using tools like Git and GitHub.

Prerequisites

Before getting started, ensure you have:

Following are a few resources found to be useful for beginners:

Steps to Create a Pull Request

Once you select a repository or issue:

Step 1: Read Contribution Guidelines

Check the CONTRIBUTING.md file (if available).

Contributing.md file

Step 2: Discuss the Issue

Communicate with maintainers to clarify requirements and expectations.

Step 3: Fork the repository

Create your own copy on GitHub.

Fork a repository

Step 4: Clone the repository

git clone https://github.com/YOUR_USERNAME/PROJECT

Clone repository

Step 5: Add Upstream Repository

git remote add upstream https://github.com/PROJECT_USERNAME/PROJECT

Step 6: Create a New Branch

git checkout -b BRANCH_NAME

Create new branch

Step 7: Make Changes

Step 8: Push Changes

git push origin BRANCH_NAME

Step 9: Create Pull Request

Go to GitHub and submit a Pull request for review.

Create a PR

Useful Git Commands

Common Git commands used to manage repositories, branches, and collaboration efficiently.