How to Make Your First Open Source Contribution: Step-by-Step Guide for Beginners (2027)
A complete, practical guide to making your first open source contribution on GitHub: how to find a beginner-friendly project and a “good first issue”, fork and clone the repository, create a branch, commit, push, open your first pull request, and respond to code review without panic. It also lists beginner-friendly open source projects by language, mentorship programs (Google Summer of Code, Outreachy, LFX Mentorship, Hacktoberfest), non-code ways to contribute, and a small free script that finds open good-first-issues for your language.
Last reviewed: December 2026. Links were checked when reviewed. Program dates change every year; always confirm on the program’s own site.
Table of Contents
- Who This Is For
- The Whole Process in One Picture
- Before You Start: One-Time Setup
- Step 1: Choose a Project
- Step 2: Find a Good First Issue
- Step 3: Read the Contributing Guide
- Step 4: Claim the Issue Politely
- Step 5: Fork and Clone
- Step 6: Create a Branch
- Step 7: Make the Change and Test It
- Step 8: Commit With a Good Message
- Step 9: Push and Open a Pull Request
- Step 10: Handle Review Feedback
- Step 11: Keep Your Fork in Sync
- The Same Flow With GitHub CLI
- Practice Repositories (Zero Risk)
- Where to Find Beginner-Friendly Issues
- Good-First-Issue Finder Script
- Beginner-Friendly Projects by Language
- Non-Code Contributions
- Mentorship Programs and Events
- Etiquette: Dos and Don’ts
- Using AI Tools Responsibly
- Common Problems and Fixes
- A 30-Day Plan to Your First Merged PR
- Glossary
- FAQ
- Where to Go Next
- Contributing
- License
- More free resources
Who This Is For
- Students and self-taught developers who have never opened a pull request.
- Developers who use open source every day but have never given back.
- Anyone preparing for Google Summer of Code, Outreachy or Hacktoberfest.
You need basic Git knowledge (what a commit is) and a GitHub account. If Git is new, spend an hour on Learn Git Branching and the first three chapters of the free Pro Git book first.
The Whole Process in One Picture
upstream repo (owner/project)
|
| 1. fork (on GitHub)
v
your fork (you/project) ---- 2. clone ----> your computer
^ |
| 3. branch, edit, test, commit
| |
+------------- 4. push <----------------+
|
| 5. open pull request: you/project:branch -> owner/project:main
v
review -> 6. push fixes to the same branch -> merged
Time estimates for a first contribution:
| Stage | Typical time |
|---|---|
| One-time setup (Git, SSH key, editor) | 30-60 minutes |
| Finding a project and issue | 1-5 hours spread over a few days |
| Understanding the code and making the change | 1-10 hours |
| Review and merge | Hours to a few weeks, depending on the maintainers |
Before You Start: One-Time Setup
- Install Git from git-scm.com or your package manager.
-
Set your identity (use the email on your GitHub account, or GitHub’s private noreply address):
git config --global user.name "Your Name" git config --global user.email "you@example.com" git config --global init.defaultBranch main - Connect to GitHub with SSH following GitHub’s SSH guide, or install the GitHub CLI and run
gh auth login. - Install an editor such as VS Code and make sure you can run the language toolchain of the projects you care about.
Step 1: Choose a Project
The best first project is one you already use or care about, because you already understand what it does.
Good signs in a project:
| Signal | Where to look | Why it matters |
|---|---|---|
| Recent commits and releases | Repository main page, Releases | Someone is around to review your PR |
| Merged PRs from new contributors | Pull requests tab, filter “is:merged” | Maintainers welcome outsiders |
CONTRIBUTING.md |
Repo root or .github/ |
Clear rules make your first PR easier |
good first issue / help wanted labels |
Issues tab | Maintainers have pre-selected tasks |
| Code of conduct | CODE_OF_CONDUCT.md |
A healthier community |
| Friendly replies to questions | Issues and discussions | Tells you how you will be treated |
Warning signs: issues with no replies for months, hostile comments, dozens of stale open PRs, or no activity for a year.
Size matters. Huge projects (Kubernetes, VS Code, CPython) have excellent guides but slow, strict reviews. Mid-size projects often merge first PRs faster. Either is fine; just set expectations.
Step 2: Find a Good First Issue
GitHub search is the most powerful tool. Paste these into the search bar on github.com (see GitHub’s issue search docs):
is:issue is:open label:"good first issue" no:assignee language:python
is:issue is:open label:"help wanted" no:assignee language:typescript
is:issue is:open label:"good first issue" no:assignee updated:>=2026-11-01
is:issue is:open label:documentation no:assignee language:go
Or start from GitHub’s own good first issue search and the good-first-issue topic.
How to judge an issue:
- It is clearly described and you understand what “done” looks like.
- Nobody is assigned and nobody said “I’m working on this” recently.
- The last maintainer comment is not very old.
- It touches a small area (one file or a few lines is perfect for a first PR).
Avoid issues that have a long design debate, involve security, or need a big refactor.
Step 3: Read the Contributing Guide
Before writing code, read:
CONTRIBUTING.md: how to set up, run tests, name branches, format commits.README.md: how to build and run the project.CODE_OF_CONDUCT.md: community rules (many projects use the Contributor Covenant).- Issue and PR templates in
.github/. - Licensing requirements: some projects require a CLA (Contributor License Agreement) signed through a bot, others require a DCO sign-off (
git commit -s, see developercertificate.org).
Many big projects have dedicated contributor docs, for example the Python Developer’s Guide, the Rust compiler dev guide, the Kubernetes contributor guide and the Django contributing docs.
Step 4: Claim the Issue Politely
Comment on the issue before you start, unless the guide says not to. Example:
Hi! I’d like to work on this. My plan is to update the date parser in
utils/dates.pyto accept ISO week dates and add tests for the three examples in the issue. Does that approach sound right?
Then wait for a reply if the project asks you to, and start working once someone confirms (or after a reasonable time if the guide says assignment is not needed). If you later cannot finish, say so in the issue so someone else can pick it up.
Step 5: Fork and Clone
- Click Fork on the repository page (GitHub docs: fork a repo).
- Clone your fork and add the original as
upstream:
git clone git@github.com:YOUR-USERNAME/project.git
cd project
git remote add upstream https://github.com/ORIGINAL-OWNER/project.git
git remote -v
# origin git@github.com:YOUR-USERNAME/project.git (fetch/push)
# upstream https://github.com/ORIGINAL-OWNER/project.git (fetch/push)
- Follow the README to install dependencies and run the test suite before changing anything. If tests fail on a clean checkout, note it; it is not your fault, but mention it in your PR.
Step 6: Create a Branch
Never work on main in your fork. One branch per contribution:
git switch main
git pull upstream main
git switch -c fix-iso-week-dates
Use the naming style from CONTRIBUTING.md if there is one (for example docs/fix-typo or issue-1234).
Step 7: Make the Change and Test It
- Keep the change small and focused on the issue. Do not reformat unrelated files.
- Follow the existing code style; run the project’s formatter and linter.
- Add or update tests that fail without your fix and pass with it.
- Update docs or the changelog if the project expects it.
- Run the full test suite (or the subset the guide recommends).
git status # what changed?
git diff # review every line before committing
Step 8: Commit With a Good Message
git add utils/dates.py tests/test_dates.py
git commit -m "Accept ISO week dates in parse_date" -m "Fixes #1234. Adds tests for 2026-W48-1 style inputs."
Good commit messages:
- Short summary line (about 50-72 characters), imperative mood: “Fix”, “Add”, “Update”.
- Body explains why, and references the issue (
Fixes #1234auto-closes it on merge). - Some projects use Conventional Commits (
fix: accept ISO week dates). Follow the project. - If the project requires DCO, add
-sto sign off.
Step 9: Push and Open a Pull Request
git push -u origin fix-iso-week-dates
GitHub shows a “Compare & pull request” button. Follow GitHub’s guide to creating a PR from a fork.
A good PR description:
## What
Accept ISO week dates (e.g. `2026-W48-1`) in `parse_date`.
## Why
Fixes #1234. Users importing calendar exports hit a ValueError.
## How
- Added a regex branch for week dates in `utils/dates.py`
- Added 3 tests covering the examples from the issue
## Testing
`pytest tests/test_dates.py` passes locally; full suite passes.
Check “Allow edits from maintainers” so they can make tiny fixes for you. Then make sure CI (automated checks) passes. If it fails, open the logs, fix, and push again to the same branch.
Step 10: Handle Review Feedback
Review is normal, not rejection. Even experienced contributors get change requests.
- Reply to every comment: either make the change or explain your reasoning politely.
- Push new commits to the same branch; the PR updates automatically (GitHub: incorporating feedback).
-
If asked to squash or rebase:
git fetch upstream git rebase upstream/main git push --force-with-lease - Be patient. Maintainers are often volunteers. A polite ping after one to two weeks of silence is fine: “Hi, just checking if anything else is needed here.”
- If the PR is closed without merge, ask what you could do better next time and move on. It happens to everyone.
Step 11: Keep Your Fork in Sync
git switch main
git fetch upstream
git merge --ff-only upstream/main
git push origin main
Or click Sync fork on GitHub (syncing a fork). Delete merged branches to stay tidy: git branch -d fix-iso-week-dates.
The Same Flow With GitHub CLI
The GitHub CLI makes forking and PRs a few commands:
gh repo fork ORIGINAL-OWNER/project --clone # fork + clone + upstream remote
cd project
git switch -c fix-typo-in-readme
# ...edit, test...
git commit -am "Fix typo in installation section"
gh pr create --fill # opens a PR to upstream
gh pr status # watch checks and reviews
gh pr checks # CI status
See the manuals for gh repo fork and gh pr create.
Practice Repositories (Zero Risk)
Want to try the mechanics first with no pressure?
| Repo | What you do |
|---|---|
| firstcontributions/first-contributions | Add your name to a file and open a PR; a well-known hands-on tutorial in many languages |
| zero-to-mastery/start-here-guidelines | Another practice repo for first PRs |
| Your own repo | Fork your own project with a second account, or open PRs between branches to rehearse |
Practice PRs teach the mechanics, but they do not count much on a resume. Move on to a real project next.
Where to Find Beginner-Friendly Issues
| Site | What it does |
|---|---|
| Good First Issue | Curated list of popular projects with good first issues, filterable by language |
| Up For Grabs | Projects that tag tasks for new contributors |
| CodeTriage | Get one issue from a project you follow emailed to you each day to help triage |
| First Timers Only | Explains the “first-timers-only” label and links to resources |
| Awesome for Beginners | List of projects with beginner-friendly labels |
| GitHub good-first-issue topic | Repositories tagged by maintainers |
| Open Source Guides: How to Contribute | GitHub’s guide to finding and contributing to projects |
Caution: some third-party “good first issue” domains have expired and now host unrelated content. Stick to the sites above or GitHub search.
Good-First-Issue Finder Script
This repository includes a tiny standard-library Python script, tools/find_good_first_issues.py, that searches GitHub for open, unassigned beginner issues.
python3 tools/find_good_first_issues.py --language python
python3 tools/find_good_first_issues.py --language rust --label "help wanted" --limit 20
python3 tools/find_good_first_issues.py --language go --updated-since 2026-11-01 --extra "stars:>500"
- No dependencies, Python 3.9+.
- Works without a token; set
GITHUB_TOKENfor a higher rate limit (the unauthenticated search API limit is low). - Tests:
python3 -m unittest discover -s tools/tests -v(no network needed).
Tip: --extra "stars:>500" limits results to repositories with more than 500 stars, which tends to filter out abandoned projects.
Beginner-Friendly Projects by Language
These projects publish contributor guides and regularly label beginner tasks. Activity changes, so check recent issues before you start.
Multi-language / documentation-heavy
| Project | Good for | Start here |
|---|---|---|
| freeCodeCamp | Curriculum, JS, TypeScript, translations | Contributor docs |
| MDN Web Docs | Web documentation | MDN getting started |
| The Odin Project curriculum | Lesson content, Markdown | Repo contributing guide |
| tldr-pages | Write short command examples | Very approachable first PR |
| Exercism | Exercises in 70+ languages | Exercism contributing docs |
| Free Programming Books | Curating lists | Strict, clear guidelines |
| Astro docs | Docs and translations | Friendly to first-timers |
Python
| Project | Notes |
|---|---|
| CPython | Read the devguide; docs fixes are a common first PR |
| Django | Excellent contributing docs and ticket triage |
| pandas | Contributing guide with docstring tasks |
| scikit-learn | Contributing guide; documentation and example fixes |
| Home Assistant | Integrations; contributor site |
| Zulip | Python + TypeScript; very detailed contributor guide |
| Oppia | Education platform known for onboarding new contributors |
| Wagtail | Django CMS with labeled beginner issues |
| Ruff | Rust-written Python linter; implementing lint rules is a common entry point |
JavaScript / TypeScript
| Project | Notes |
|---|---|
| Excalidraw | React whiteboard |
| Hoppscotch | API client |
| Appwrite | Backend platform with many SDKs |
| Supabase | Docs and dashboard |
| Mermaid | Diagram library |
| p5.js | Creative coding library with a strong community focus on newcomers |
| Vite | Build tool |
| Astro | Web framework |
| DefinitelyTyped | Fix or add TypeScript types for packages you use |
| VS Code | See the How to Contribute wiki |
| Node.js | Tests and docs are good first areas |
Rust, Go and others
| Project | Notes |
|---|---|
| Rust | Look for the E-easy label; read the rustc dev guide |
| Rustlings | Small exercise fixes |
| Deno | Rust + TypeScript runtime |
| Kubernetes | Go; contributor guide and many SIGs |
| Godot Engine | C++ game engine; docs and editor issues |
| Homebrew | Update formulae for tools you use |
| Oh My Zsh | Plugins and themes |
| github/gitignore | Improve .gitignore templates |
| Firefox | Read Firefox contributor docs |
| MediaWiki | Wikimedia’s onboarding page for new developers |
| OpenStreetMap | Many related tools and apps |
Non-Code Contributions
Open source needs much more than code. These count, and maintainers value them.
| Contribution | How to start |
|---|---|
| Fix docs and typos | Read docs while using a tool; fix anything confusing |
| Write examples and tutorials | Add a missing example to a README |
| Translate | Projects often use Weblate or translatewiki.net; MDN has translated-content |
| Triage issues | Reproduce bugs, add missing details, find duplicates; CodeTriage helps |
| Review PRs | Test someone’s PR locally and report results |
| Design and accessibility | Report or fix UI and a11y issues |
| Answer questions | Help in discussions, forums or chat |
| Sponsor | GitHub Sponsors lets you fund maintainers directly |
Some projects recognize every type of contribution with All Contributors.
Mentorship Programs and Events
| Program | What it is | Paid? | When (typical) |
|---|---|---|---|
| Google Summer of Code | Work on an open source project with a mentor over the summer | Stipend | Applications early in the year; check the timeline |
| Outreachy | Paid remote internships for people subject to systemic bias and underrepresentation in tech | Stipend | Two cohorts per year |
| LFX Mentorship | Linux Foundation projects (CNCF, Hyperledger and more) | Stipend for most | Several terms per year |
| MLH Fellowship | Remote programs including open source work | Varies | Several batches per year |
| Hacktoberfest | Month-long celebration of open source every October | No stipend | October |
Tip: for GSoC and Outreachy, start contributing to your target project a few months before applications open. Mentors pick applicants who have already shown up.
Etiquette: Dos and Don’ts
Do
- Search existing issues and PRs before opening a new one.
- Keep PRs small and focused; one change per PR.
- Write clear titles and descriptions; link the issue.
- Say thank you; maintainers are often volunteers.
- Follow the code of conduct.
Don’t
- Open PRs that only change whitespace or add your name to random files (spam hurts maintainers, especially during events).
- Comment “Can I work on this?” on dozens of issues at once.
- Ping maintainers daily or tag people who are not involved.
- Take an issue someone else is actively working on.
- Submit large features without discussing them in an issue first.
Using AI Tools Responsibly
AI assistants can help you understand an unfamiliar codebase, explain errors, or draft tests. But:
- Read the project’s policy. Some projects restrict or ban AI-generated contributions; others require disclosure.
- Understand every line you submit. Reviewers will ask questions, and you must be able to answer.
- Never mass-generate PRs. Low-quality automated PRs are a growing burden on maintainers and can get you blocked.
- Test it yourself. “The AI said it works” is not a test plan.
Common Problems and Fixes
| Problem | Fix |
|---|---|
Permission denied (publickey) |
Set up SSH keys or use HTTPS with the GitHub CLI login |
I committed on main |
git switch -c my-branch (your commits move with you), then reset main: git switch main && git reset --hard upstream/main |
| Merge conflicts | git fetch upstream && git rebase upstream/main, fix files, git add, git rebase --continue, then git push --force-with-lease |
| CI fails on lint | Run the project’s formatter/linter locally and push again |
| CLA check failing | Follow the bot’s link and sign; make sure your commit email matches your GitHub account |
| DCO check failing | git commit --amend -s (or git rebase --signoff upstream/main) then force-push with lease |
| PR includes unrelated files | Remove them: git restore --source=upstream/main path/to/file, commit, push |
| No response for weeks | One polite ping; if still silent, consider another project |
| Accidentally pushed a secret | Revoke/rotate the secret immediately; removing it from history is not enough |
A 30-Day Plan to Your First Merged PR
| Days | Goal | Output |
|---|---|---|
| 1-3 | Set up Git, SSH, GitHub CLI; do Learn Git Branching basics | Working setup |
| 4-5 | Make a practice PR to first-contributions | Comfort with fork-branch-PR |
| 6-10 | Shortlist 3 projects you use; read their CONTRIBUTING files; build and run tests locally | One project that builds on your machine |
| 11-14 | Find 3 candidate issues; comment on the best one with a plan | An issue you are cleared to work on |
| 15-22 | Make the change, add tests, open the PR | Open PR with green CI |
| 23-30 | Respond to review; meanwhile triage one other issue or fix a doc | Merged PR (or a clear next step) |
After your first merge, pick a second issue in the same project. Depth in one community builds trust and leads to bigger tasks.
Glossary
| Term | Meaning |
|---|---|
| Upstream | The original repository you want to contribute to |
| Origin | Your fork (by default, where you cloned from) |
| Fork | Your copy of someone else’s repository on GitHub |
| Branch | An independent line of work |
| Pull request (PR) | A request to merge your branch into the upstream repo |
| CI | Automated checks (tests, linters) that run on your PR |
| Maintainer | Person with permission to review and merge |
| CLA | Contributor License Agreement you sign once per project or organization |
| DCO | Developer Certificate of Origin; you certify with Signed-off-by: in commits |
| Squash | Combine several commits into one |
| Rebase | Replay your commits on top of the latest upstream |
| Triage | Sorting, labeling and reproducing issues |
FAQ
How do I make my first open source contribution?
Find a project you use, look for an issue labeled “good first issue”, read the contributing guide, fork and clone the repo, create a branch, make a small change with tests, push to your fork and open a pull request. This guide walks through each step.
Do I need to be an expert to contribute?
No. Documentation fixes, tests, small bug fixes and issue triage are all valuable and suitable for beginners.
How do I find good first issues?
Search GitHub with is:issue is:open label:"good first issue" no:assignee language:YOURLANG, or use goodfirstissue.dev, Up For Grabs and the finder script in this repo.
What if my pull request is rejected?
Ask for feedback, learn from it, and try another issue. Rejections are common and usually about project direction, not your ability.
How long does it take for a PR to be merged?
From hours to weeks. Small, well-tested PRs on active projects merge fastest.
Does open source help me get a job?
Merged contributions to real projects show that you can read unfamiliar code, communicate and work with review, which interviewers value. Quality matters far more than count.
Can I contribute without writing code?
Yes: docs, translations, design, testing, triage and answering questions are all contributions.
What is the difference between “good first issue” and “help wanted”?
“Good first issue” is meant for newcomers and is usually small and well defined. “Help wanted” means maintainers want outside help, but the task may be harder.
Should I contribute during Hacktoberfest?
Yes, if you follow each project’s rules and submit meaningful PRs. Low-effort PRs made just for the event annoy maintainers.
What is a CLA and should I sign it?
A Contributor License Agreement grants the project rights to use your contribution. Many large companies’ projects require one. Read it, and sign if you agree.
Where to Go Next
- Read Open Source Guides for how projects work, including maintaining your own.
- Contribute to the same project again and aim to review others’ PRs.
- Apply to Google Summer of Code, Outreachy or LFX Mentorship.
- Start your own small open source project; choosealicense.com helps you pick a license, and GitHub’s contributor guidelines docs help you welcome others.
- Explore other guides in the Ralpberry Labs collection.
Contributing
PRs welcome, and this repo is a fine place to practice:
- Suggest a beginner-friendly project (it must be active, have a contributing guide and labeled beginner issues).
- Fix unclear steps or broken links.
- Improve the finder script (keep it standard-library only, and add tests).
If this helped you, a star helps others find it.
License
Code (the tools/ folder) and content are released under the MIT License. Project names belong to their owners; this is an independent guide, not affiliated with GitHub or any project listed.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.