+91-9801012345
Apply Now
Haridwar University Logo
16 Years
Admissions Open 2027 – Top Placement University + Scholarship up to 50% Apply Now!
Open Source Contribution for Beginners: How to Make Your First GitHub PR
Engineering
December 1, 2026
10 min read

Open Source Contribution for Beginners: How to Make Your First GitHub PR

Dr. Himanshu Verma

Associate Professor & HOD, Computer Science & Engineering, Haridwar University

Making your first open-source contribution can feel more difficult than writing your first programme. You may understand programming and know a few Git commands, but opening an unfamiliar repository raises different questions: Which issue should you choose? Where are the project rules? How do you make a change without affecting the original code?

An open source contribution for beginners does not have to start with a complex feature or a major code change. It can be a documentation correction, a reproducible bug report, a test improvement or a small code fix. What matters is understanding the project's requirements and submitting a change that maintainers can review.

I recommend treating your first contribution as a complete development exercise, from selecting an issue to responding to feedback on your pull request.

1. What Open Source Contribution Means for Beginners

Open-source software is distributed under a licence that gives users specified rights to use, inspect, modify and share the software. Its source code is available for people to study and, subject to the project's rules and licence, contribute to.

Contributing does not mean having permission to edit any repository directly. Most projects have a review process to protect code quality and maintain consistency.

A contribution can involve:

  • Code: Fixing a bug or implementing a small feature.
  • Documentation: Correcting instructions, examples or broken links.
  • Testing: Adding test cases or reproducing reported problems.
  • Issue reporting: Describing a bug with clear reproduction steps.
  • Translation: Improving documentation for another language.

For a first contribution, documentation or a clearly defined beginner issue can be a sensible starting point. The aim is to understand how an established project works, not to make the largest possible change.

2. What You Need Before Making Your First Contribution

You do not need to master several programming languages before contributing. However, a few fundamentals will make the process easier.

Requirement What you should understand
Git Repositories, branches, commits and basic commands
GitHub Repositories, issues, forks and pull requests
Programming or documentation Enough knowledge to understand the task
Development environment How to install dependencies and run the project
Communication How to explain your proposed change clearly

If you need to strengthen your version-control knowledge first, follow our guide to Git commands for students. It explains repository creation, commits, branches and the relationship between Git and GitHub.

Students can also build their programming foundation through a structured DSA roadmap for placement preparation. These fundamentals help when understanding unfamiliar code and evaluating how a proposed change affects a project.

3. How to Find Open Source Projects for Beginners

Start with software you already use or a technical area you want to understand. Familiarity with a project's purpose makes its problems easier to recognise.

GitHub provides several ways to discover repositories and contribution opportunities:

  1. GitHub Explore helps you discover projects and topics.
  2. GitHub's good first issue search helps locate open issues labelled for newcomers.
  3. GitHub's help wanted issue search highlights tasks where maintainers are seeking contributions.
  4. First Contributions provides a practice repository for learning the basic contribution workflow.

These labels are useful filters, not guarantees that an issue will be easy or available. Read the issue and its discussion before deciding to work on it.

I also recommend checking whether the repository has recent activity, a clear licence, readable documentation and maintainers who respond to contributors. A popular repository is not necessarily the best first project if its codebase or setup is beyond your current experience.

4. How to Choose Your First Open Source Issue

Finding an issue is only the beginning. You need to establish whether you can understand and complete it. Before starting, check five things:

  • Description: Does the issue explain the problem and expected result?
  • Status: Is it still open, or has someone already started working on it?
  • Difficulty: Can you understand the affected files and reproduce the problem?
  • Guidelines: Does the project ask contributors to discuss an issue before submitting a PR?
  • Scope: Can you make the change without modifying unrelated parts of the project?

Read the repository's README and look for CONTRIBUTING.md, a Code of Conduct and any testing instructions. These documents explain how the project expects contributions to be made.

If the issue is unclear, ask a specific question in its discussion. Avoid spending hours implementing a solution before confirming that it matches the maintainer's expectations. For your first attempt, consider a small documentation correction or a clearly isolated bug. A focused contribution is easier to test and review.

5. How to Fork and Clone an Open Source Repository

Suppose you find an open issue involving an incorrect documentation link. You want to correct it in the original project, but you do not have permission to edit that repository directly. The usual GitHub workflow is to fork the repository, make changes in your copy and submit a pull request.

Step 1: Fork the repository

Open the original project on GitHub and select Fork. This creates a copy under your GitHub account.

Step 2: Clone your fork

Open your fork, select Code, copy its HTTPS URL and run:

git clone https://github.com/YOUR-USERNAME/PROJECT-NAME.git
cd PROJECT-NAME

Replace the placeholders with your username and repository name.

Step 3: Connect the original repository

Add the original project as an upstream remote:

git remote add upstream https://github.com/ORIGINAL-OWNER/PROJECT-NAME.git
git remote -v

Here, origin normally refers to your fork, while upstream refers to the original repository. This distinction helps you retrieve changes from the project you are contributing to.

6. How to Make Your First Contribution Using Git

Before editing files, create a separate branch. Do not make your contribution directly on the default branch.

git switch -c fix-documentation-link

Now open the relevant file in your editor and correct the broken documentation link. Keep the change limited to the issue you selected.

Review your changes:

git status
git diff

The first command shows which files have changed. The second displays the actual modifications, helping you catch accidental edits before committing.

If the change is correct and follows the project's guidelines, stage and commit it:

git add README.md
git commit -m "Fix documentation link"

Replace README.md with the actual file you changed. Before submitting, run the checks required by the project. These might include documentation checks, automated tests, formatting or a local build. A documentation-only contribution may not require the same tests as a code change, but it should still be checked.

Push your branch to your fork:

git push -u origin fix-documentation-link

Your contribution is now available on GitHub for review.

7. How to Create and Submit Your First GitHub PR

A pull request (PR) proposes that maintainers review and potentially merge your changes into the original project. It is not the same as git pull, which retrieves and integrates repository changes.

After pushing your branch:

  1. Open your fork on GitHub.
  2. Select Compare & pull request, or open the Pull requests tab and choose New pull request.
  3. Set the base repository to the original project and the base branch to its default or designated target branch.
  4. Set the head repository to your fork and the compare branch to fix-documentation-link.
  5. Add a clear title and explain the change.

A useful PR description should state:

  • What changed: The documentation link was corrected.
  • Why: The previous link did not lead to the intended resource.
  • Testing: The updated link was checked.
  • Related issue: Reference the issue number if applicable.

Submit the pull request only after checking that the correct repository and branches are selected. GitHub's official guide to contributing to open source provides further instructions for this workflow.

8. How to Handle Pull Request Reviews and Common Mistakes

Submitting a PR does not mean the contribution is finished. Maintainers may approve it, request changes, ask questions or close it if it does not meet the project's requirements.

If changes are requested, read the comments carefully, update your existing branch, test the revision and push another commit. The same pull request will display the new changes.

Avoid these common mistakes:

Mistake Better approach
Working without reading project guidelines Check README and CONTRIBUTING.md first
Choosing an issue already assigned Check its status and discussion
Making unrelated changes Keep the PR focused on one issue
Selecting the wrong base branch Verify the original repository and target branch
Skipping checks Follow the project's testing instructions
Opening another PR for requested changes Update the existing contribution branch
Committing passwords or API keys Keep credentials and private configuration out of commits

A review request is not necessarily a rejection. It is part of collaborative development. Respond professionally, explain your decisions where necessary and ask for clarification when feedback is unclear.

9. FAQs

1. Can beginners contribute to open source projects?

Yes. Beginners can start with documentation, translations, tests, bug reports or small code changes. The important part is choosing a task that matches their current skills and following the project's contribution guidelines.

2. How do I find open source projects for beginners?

Explore GitHub repositories and search for open issues labelled good first issue or help wanted. Check project activity, documentation, licence and contribution instructions before selecting an issue.

3. Do I need to know Git before contributing to open source?

Basic Git knowledge is strongly recommended. You should understand cloning, branching, staging, committing and pushing because these operations are central to many contribution workflows.

4. What is the difference between a fork and a clone?

A fork creates a copy of another repository under your GitHub account. A clone downloads a repository to your local computer so you can work on its files.

5. What is a GitHub pull request?

A pull request proposes changes from one branch or repository to another. It allows maintainers to review the modifications, discuss them and decide whether to merge them.

6. Can I contribute to open source without writing code?

Yes. Many projects welcome documentation improvements, translations, testing, issue reproduction and other non-code contributions, provided they follow the project's guidelines.

7. What happens if my first pull request is rejected?

Read the maintainer's feedback and understand why the change was not accepted. You can revise the work if invited, ask for clarification or use the feedback to prepare a better contribution elsewhere.

10. Start Building Your Open Source Contribution Record

Your first open-source contribution is an opportunity to practise more than programming. It develops your ability to read unfamiliar code, understand project requirements, communicate technical changes and work with feedback.

I recommend starting with one small issue rather than trying to contribute to several repositories at once. Complete the process carefully, keep your pull request focused and learn from the review.

Students exploring practical computing projects can also refer to CSE and AI/ML final-year project ideas and learn about the computing programmes at Haridwar University's Roorkee College of Smart Computing.

The first PR may be a small change to a README file. What matters is that you understand how that change moves from your computer to a project maintained by other developers. That is the foundation of meaningful open-source participation.

Grow Your Collaborative Engineering Skills at Haridwar University

Build real-world software engineering habits, contribute to live projects, and prepare for top tech careers with our computing programmes.

Chat with
HU
Admission
Team