How to Contribute to Open Source: A Step-by-Step Guide
· updated

Contributing to open source sounds intimidating until you do it once. The whole process is the same on almost every project: find an issue, tell the maintainers you’re working on it, make the change on your own copy, and send it back for review. This guide walks through each step with the actual commands and messages to use, so you can go from zero to your first pull request this week.
The short answer: To contribute to open source:
- Pick a project you already use and read its README and CONTRIBUTING file.
- Find an issue labelled
good first issue,help wantedordocumentation. - Comment on the issue to ask if you can take it.
- Fork the repository and clone your fork.
- Create a new branch for your change.
- Set up the project and run its tests.
- Make a small, focused change and commit it.
- Push your branch and open a pull request.
- Respond to review feedback until it’s merged.
If you’re new to the idea of open source itself, read what open source is and how licences work first.
Before you start: what you need
- A GitHub account. Most projects live on GitHub; some use GitLab or their own systems, but the steps are similar.
- Git installed on your computer, with your name and email set:
git config --global user.name "Your Name"andgit config --global user.email "you@example.com". - The basics of Git: clone, branch, commit, push. You can learn enough in an afternoon.
- Patience. Maintainers are often volunteers. Reviews can take days.
Step 1: pick a project you actually use
The best first project is one you already know as a user: a library you’ve imported, a tool on your laptop, a framework you’ve built something with. You’ll understand what it’s supposed to do, which makes bugs and docs gaps easier to spot.
Before committing to it, check that it’s alive:
- Recent commits in the last few weeks.
- Pull requests being reviewed and merged, not left for months.
- A CONTRIBUTING file and a code of conduct.
- Maintainers who reply politely to newcomers in issues.
Need ideas? See our list of open source projects to contribute to for your resume.
Step 2: read the CONTRIBUTING file
This is the step most first-timers skip, and it’s why many first PRs get closed. The CONTRIBUTING file (sometimes a “Contributing” page in the docs) tells you:
- How to set up the project locally.
- How to run the tests and linters.
- Whether you need to be assigned before starting.
- The branch, commit message and PR title format they expect.
- Whether they need you to sign a contributor licence agreement (CLA) or add a “Signed-off-by” line (DCO).
- Their policy on AI-generated contributions.
Ten minutes reading it saves you a rejected PR.
Step 3: find a good first issue
Open the project’s Issues tab and filter by label. Common beginner labels are good first issue, first-timers-only, help wanted, easy, beginner and documentation. You can also search across GitHub with label:"good first issue" language:python is:open. Sites like goodfirstissue.dev and up-for-grabs.net collect beginner issues from many projects.
A good first issue is:
- Small and clear: you can explain the fix in one sentence.
- Unclaimed: no one has commented that they’re working on it and there’s no linked PR.
- Recent: activity in the last few months, so it’s still wanted.
No good issues? Use the project and the docs for an hour. Typos, broken links, outdated examples and confusing error messages are all real contributions. Open an issue describing what you found before fixing it.
Step 4: claim the issue
Leave a short comment so others don’t duplicate your work, and so maintainers can tell you if there’s context you’re missing:
Hi! I’d like to work on this. My plan is to update the example in
docs/quickstart.mdto use the newconnect()signature and add a note about the timeout argument. Does that sound right?
Some projects use a bot command to assign issues (for example, commenting /assign or @bot claim); the CONTRIBUTING file will say. Wait for a thumbs up if the project asks you to, otherwise start.
Step 5: fork, clone and branch
A fork is your own copy of the repository on GitHub. Click Fork on the project page, then on your computer:
git clone https://github.com/YOUR-USERNAME/PROJECT.git
cd PROJECT
git remote add upstream https://github.com/ORIGINAL-OWNER/PROJECT.git
git checkout -b fix-quickstart-example
The upstream remote lets you pull in the latest changes from the original project. Always work on a new branch, never on main, so you can keep your fork in sync and open several PRs at once.
Step 6: set up the project and run the tests
Follow the setup instructions in the CONTRIBUTING file exactly: install dependencies, then run the test suite before changing anything. If tests fail before you’ve touched the code, you know the problem isn’t yours. If setup itself is confusing, that’s worth noting; improving setup docs is a valued contribution.
Step 7: make a small, focused change
- Change only what the issue asks for. Don’t reformat other files or fix unrelated things in the same PR.
- Match the existing style. Naming, formatting and comment style should look like the code around it. Run the project’s formatter or linter.
- Add or update tests if you changed behaviour.
- Update docs if you changed how something is used.
Then commit with a clear message in the project’s format:
git add docs/quickstart.md
git commit -m "docs: update quickstart example for new connect() signature"
Step 8: push and open a pull request
Before pushing, pull in any new changes from the original project so your branch is up to date:
git fetch upstream
git rebase upstream/main
git push origin fix-quickstart-example
GitHub will show a Compare & pull request button. Many projects have a PR template; fill in every section. If there isn’t one, this structure works:
What this changes: Updates the quickstart example to use the new
connect(url, timeout=...)signature.Why: The old example raises a TypeError since v3.0. Fixes #1234.
How I tested it: Ran the example against a local server and ran
make docswith no warnings.
Writing Fixes #1234 links the issue so it closes automatically when your PR is merged.
Step 9: handle the review
A reviewer will probably ask for changes. That’s normal and doesn’t mean you did badly. To respond well:
- Thank them and make the changes on the same branch. New commits pushed to the branch update the PR automatically.
- Ask if something is unclear rather than guessing.
- Explain your reasoning if you disagree, briefly and politely, then go with the maintainer’s call. It’s their project.
- Follow up once if there’s no response after a week or so. Then let it be.
When it’s merged, you’re officially an open source contributor.
Open source etiquette in the age of AI
Maintainers are dealing with a flood of low-effort, AI-generated pull requests, and some projects now restrict AI-written contributions entirely. To be the contributor maintainers are glad to see:
- Check the AI policy in the CONTRIBUTING file before using any assistant.
- Understand every line you submit. If a reviewer asks “why this approach?”, you need a real answer.
- Test it yourself. Never submit code you haven’t run.
- Don’t spray PRs across dozens of repositories to pad your profile. Maintainers notice, and so do hiring managers.
After your first contribution
One merged PR is a start. To make open source a real asset:
- Stay with the same project. Take on a slightly bigger issue next. Over time you’ll get faster reviews and more interesting work.
- Help in other ways. Answer questions in issues, reproduce bug reports, review others’ PRs.
- Look into mentoring programmes like Google Summer of Code, Outreachy and the LFX Mentorship programme, which pair you with maintainers on a defined project.
- Add it to your resume with a specific result and a link to the PR.
For the resume part, describe what changed and why it mattered, the same way you would for a job. Our guide to resume bullet points shows how. When you apply, Tailr tailors your resume to the job listing you’re viewing, so the contributions that match each role are the ones a recruiter sees first. Try Tailr on your next application.
Common mistakes to avoid
| Mistake | What to do instead |
|---|---|
| Opening a PR without reading CONTRIBUTING | Read it first and follow every rule |
| Working on an issue someone else claimed | Check comments and linked PRs before starting |
| One huge PR that changes many things | Several small, focused PRs |
Committing to main on your fork |
A new branch for every change |
| Arguing with reviewers | Ask questions, explain once, accept their call |
| Submitting code you don’t understand | Only submit what you can explain and have tested |
Conclusion
Contributing to open source comes down to nine steps: pick a project you use, read the CONTRIBUTING file, find a good first issue, claim it, fork and branch, set up and test, make a small change, open a clear pull request, and work through the review. Start with something small, like a docs fix, and stick with the same project for your next few contributions. That’s how one merged PR turns into real experience you can put on a resume.
Frequently asked questions
01How do I start contributing to open source as a beginner?
Pick a project you already use, read its README and CONTRIBUTING file, and look for issues labelled good first issue or documentation. Comment to ask if you can take one, fork the repository, make the change on a new branch, and open a pull request that explains what you changed and why.
02Do I need to be an expert programmer to contribute to open source?
No. Many valuable contributions are documentation fixes, clearer error messages, small tests or bug reports with clear reproduction steps. You need to know the basics of Git and GitHub, read carefully, and follow the project's guidelines. Your skills grow as you go.
03How long does it take to get a pull request merged?
It varies from a few hours to several weeks, depending on how busy the maintainers are and how big the change is. Small, focused pull requests that follow the project's guidelines get reviewed fastest. If a week passes with no response, one polite follow-up comment is fine.
04What if my pull request gets rejected?
It happens to everyone, including experienced contributors. Read the feedback, ask what would make the change acceptable if it isn't clear, and either revise it or move on to another issue. A closed pull request with a polite, thoughtful discussion still teaches you how the project works.
05Can I use AI tools to contribute to open source?
Many projects allow it, but some restrict or ban AI-generated contributions, so check the CONTRIBUTING file first. Whatever you use, you must understand and test every line you submit and be able to answer reviewers' questions about it. Never submit code you can't explain.
06Is open source contribution good for my resume?
Yes. Merged contributions are public proof of real work in a real codebase, reviewed by other engineers. They're especially useful if you're a student, switching careers, or lack professional experience in a specific language or tool.