60 Mins

13. Open Source Contribution — The Full Workflow

Open Source

Contributing to open-source projects is the fastest way to build a portfolio, get code reviewed by world-class engineers, and build a professional network. Millions of the tools you use every day — Linux, React, Python, VS Code — run on voluntary open-source contributions. The workflow is slightly different from internal team Git usage.

Fork → Clone → Branch → PR

You cannot push directly to a repository you don't own. The open-source contribution workflow is:

Fork the repo
Your copy on GitHub
→
Clone your fork
To your machine
→
Create a branch
feature/fix-name
→
Make changes
Commit + push
→
Open PR
fork → upstream
→
Review & merge
Maintainer merges

Keeping Your Fork in Sync

After forking, add the original repo as upstream:

Bash
git remote add upstream git@github.com:original-owner/original-repo.git

Verify your remotes:

Bash
git remote -v

Sync your fork with the latest changes from the original. Do this BEFORE starting every new contribution. Working from an outdated fork creates merge conflicts:

Bash
git checkout main
git fetch upstream
git merge upstream/main
git push origin main

Open Source Etiquette

  • Read CONTRIBUTING.md before opening a PR. Every project has its own style requirements, test expectations, and PR conventions. Violating them is the fastest way to get a PR closed without review.
  • Open an issue before making a large change. Ask: "I'd like to add X feature / fix Y bug — is this something you'd accept?" Spending three days on a PR the maintainer doesn't want is wasted effort.
  • One PR per change. Don't combine multiple fixes in one PR. Maintainers prefer reviewing focused changes.
  • Be patient. Maintainers are often volunteers with full-time jobs. A two-week response time is normal for smaller projects.
  • Accept feedback graciously. Maintainers may rewrite your contribution entirely. That is not a rejection — it is teaching by example.

Finding Good First Issues

Search GitHub for beginner-friendly open source issues by filtering by label on any GitHub repo. Look for labels like good first issue, help wanted, or beginner friendly.

Resources for finding open source projects to contribute to:

  • github.com/explore (trending repositories)
  • goodfirstissues.com
  • opensourcefriday.com
  • up-for-grabs.net

Start with documentation contributions — they are lower-risk, always needed, and give you experience with the contribution workflow before touching production code.

Knowledge Check

Ready to test your understanding of 13. Open Source Contribution — The Full Workflow?

Back