Skip to content

DevelopersGlobal/first-pull-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

First Pull Request

Your journey into open source starts here!

This repository exists for one purpose: to help you make your first pull request and start contributing to open source projects with confidence.

🌟 What is a Pull Request?

A Pull Request (PR) is how you propose changes to a project on GitHub. It's the fundamental way developers collaborate on open source projects. By making your first PR here, you'll learn the complete workflow used by millions of developers worldwide.

πŸ“‹ What You'll Learn

βœ… How to fork a repository
βœ… How to clone and work locally
βœ… How to create a branch
βœ… How to commit changes
βœ… How to push to GitHub
βœ… How to create your first Pull Request


πŸš€ Prerequisites

Before you begin, make sure you have:


πŸ“ Make Your First Pull Request

Method 1: Using Command Line (Recommended)

Step 1: Fork This Repository

Click the Fork button at the top right of this page.

Step 2: Clone Your Fork

git clone https://github.com/YOUR-USERNAME/first-pull-request.git
cd first-pull-request

Replace YOUR-USERNAME with your actual GitHub username

Step 3: Create a New Branch

git checkout -b add-your-name

Use a descriptive name like add-john-doe

Step 4: Add Your Name

Open the CONTRIBUTORS.md file and add your name in this format:

- [Your Name](https://github.com/your-username) - Your location (optional)

Add it in alphabetical order by first name!

Example:

- [Dhanush Nehru](https://github.com/DhanushNehru) - Bangalore, India

Step 5: Save and Commit

git add CONTRIBUTORS.md
git commit -m "Add [Your Name] to contributors list"

Step 6: Push Your Changes

git push origin add-your-name

Step 7: Create Pull Request

  1. Go to your forked repository on GitHub
  2. You'll see a Compare & pull request button - click it!
  3. Add a title: Add [Your Name] to contributors
  4. Click Create pull request

πŸŽ‰ Congratulations! You've Made Your First Pull Request!


Method 2: Using GitHub Web Interface (No Installation)

Perfect if you don't want to install Git yet!

  1. Fork this repository (button at top right)
  2. Go to CONTRIBUTORS.md in your forked repository
  3. Click the pencil icon ✏️ to edit
  4. Add your name in alphabetical order
  5. Scroll down, add commit message: Add [Your Name] to contributors
  6. Click Commit changes
  7. Click the Pull requests tab
  8. Click New pull request
  9. Click Create pull request
  10. Add title and click Create pull request again

Done! That's your first PR! πŸš€


⏭️ What Happens Next?

  1. βœ… A maintainer will review your Pull Request
  2. βœ… If approved, your PR will be merged
  3. βœ… Your name appears in the contributors list
  4. βœ… You get notified when it's merged
  5. 🎊 You're officially an open source contributor!

πŸŽ“ Understanding Pull Requests

The Pull Request Workflow

Fork β†’ Clone β†’ Branch β†’ Change β†’ Commit β†’ Push β†’ Pull Request β†’ Review β†’ Merge

This is the standard workflow used across thousands of open source projects!

Why Practice Here?

  • βœ… Safe environment - mistakes are welcome
  • βœ… Quick feedback - PRs reviewed fast
  • βœ… Real workflow - same process as major projects
  • βœ… Build confidence - practice before contributing elsewhere

πŸ“š Next Steps & Resources

Ready for More?

After your first PR is merged, try these:

Learning Resources


❓ Got Questions?

Common Issues:

❌ "Permission denied" error

Make sure you cloned your fork, not the original repository.

git remote -v

Should show your username, not the original repo owner.

❌ "Branch already exists" error

Use a different branch name:

git checkout -b add-your-name-v2
❌ Merge conflicts

Update your fork with the latest changes:

git pull origin main

Then resolve conflicts and commit again.

Still stuck?

  • Check existing Issues
  • Create a new issue - we're here to help!
  • Remember: Every expert was once a beginner 🌱

πŸ† Our Contributors

Thanks to everyone who made their first pull request here! πŸŽ‰

View all contributors

Total Pull Requests: GitHub pull requests


🀝 Code of Conduct

We're committed to providing a welcoming environment. Please read our Code of Conduct.

TL;DR: Be kind, be respectful, be helpful.


πŸ“œ License

This project is licensed under the MIT License - see LICENSE for details.


πŸ’¬ Share Your Success!

Made your first PR? Share it with the world!

  • Tweet about it with #first-pull-request and #OpenSource
  • Add it to your LinkedIn profile
  • Tell your friends who want to start contributing

🌟 Star This Repo

If this helped you make your first contribution, please give it a ⭐

Help others discover this resource and start their open source journey!


Made with ❀️ for aspiring open source contributors

Make Your First PR | View Contributors | Report Issue

GitHub stars GitHub forks

About

Helping beginners contribute to opensource projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors