Project: Your First Open-Source Contribution
Put it all together by contributing to a real project. Open-source contributions look great on a CV and teach you how professional teams work.
Contributing to open source is one of the best ways to learn real-world Git, get your code reviewed by experienced developers, and build a public portfolio. Start small: documentation fixes and good-first-issues are welcome everywhere.
Step by step
- Find a project you use or like. Look at issues labelled
good first issueorhelp wanted. Read theREADMEandCONTRIBUTINGfiles. - Comment on the issue to say you'd like to work on it, and ask questions if anything is unclear.
- Fork the repository and clone your fork.
- Create a branch named after the task.
- Make a small, focused change, follow the project's style, and run its tests.
- Commit with a clear message and push to your fork.
- Open a pull request to the original repo, linking the issue (
Fixes #123). - Respond to review politely and push fixes to the same branch.
Example
git clone https://github.com/YOUR-NAME/project.git
cd project
git remote add upstream https://github.com/ORIGINAL-OWNER/project.git
git switch -c fix-typo-in-readme
# ... make the change, run the tests ...
git add README.md
git commit -m "docs: fix typo in installation steps"
git push -u origin fix-typo-in-readmeKeep your fork up to date
Example
git switch main
git fetch upstream
git merge upstream/main
git pushGood first contributions
- Fix typos or unclear steps in the documentation
- Add a missing test
- Improve an error message
- Translate text into Hindi or another language you know
Your GitHub profile is your portfolio. Pin your best repositories, write a short profile README, and keep committing - small, steady activity shows more than one big burst.
Key points
- Fork, clone, branch, commit, push, open a PR.
- Keep your fork updated from upstream.
- Start with small, well-scoped contributions.
📝 Test yourself
1. Which label often marks issues for beginners?
2. What is the 'upstream' remote?
3. Fill in the words in a PR description that close an issue when merged:
#123
