Skip to content

Welcome to this beginner-friendly repository created especially for our GitHub Workshop! If you're new to Git, GitHub, or open-source contributions, you're in the right place. 🌟

Notifications You must be signed in to change notification settings

devanshu-puri/first-pr-nmit

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Make Your First Pull Request! πŸ’»

Welcome to this beginner-friendly repository created especially for our GitHub Workshop!
If you're new to Git, GitHub, or open-source contributions, you're in the right place. 🌟

The goal of this repository is simple:
Help you make your very first Pull Request (PR) and get comfortable with the collaboration process on GitHub.

🧠 What You Will Learn

  • βœ… How to fork a repository
  • βœ… How to clone it to your local machine
  • βœ… How to create a new branch
  • βœ… How to make a change and commit it
  • βœ… How to push the code back to GitHub
  • βœ… How to create a Pull Request (PR)

πŸ“‹ Workshop Preparation

Before the workshop, please make sure you have:

  1. Created a GitHub account - Sign up at github.com
  2. Installed Git on your computer
    • Windows: Git for Windows
    • Mac: brew install git (using Homebrew) or Git for Mac
    • Linux: sudo apt-get install git (Ubuntu/Debian) or sudo yum install git (Fedora)
  3. Set up Git with your identity:
   
   git config --global user.name "Your Name"
   git config --global user.email "your.email@example.com"

πŸ› οΈ Step-by-Step Guide

1. Fork this Repository 🍴

Click the Fork button at the top-right corner of this page.
This will create a copy of this repository under your GitHub account.

2. Clone Your Fork πŸ“₯

Now clone the forked repository to your local machine using:

git clone https://github.com/YOUR-USERNAME/first-pr-repo.git
cd first-pr-repo

πŸ’‘ Pro Tip: Replace YOUR-USERNAME with your actual GitHub username!

3. Create a New Branch 🌿

Use the following command to create a new branch:

git checkout -b my-first-contribution

This creates a new branch called my-first-contribution and switches to it automatically.

4. Make Your Change ✍️

Open the index.html file in a code editor of your choice and add your name in the following format:

<li>
  Your name - I am from ___ !
</li>

Save the file after making your changes.

5. Add and Commit Your Change πŸ’Ύ

After making your changes, run the following commands:

git add .
git commit -m "Add my name to the contributors list"

The first command stages your changes, and the second command creates a commit with your changes and a descriptive message.

6. Push to GitHub πŸš€

Push your branch using:

git push origin my-first-contribution

This sends your new branch with the committed changes to your fork on GitHub.

7. Create a Pull Request πŸ›ŽοΈ

  1. Go to your forked repository on GitHub
  2. Click on the Compare & pull request button that appears at the top
  3. Add a title and description to your PR
  4. Click Create pull request

image

βœ… Contribution Checklist

  • Forked the repository
  • Cloned the repository
  • Created a new branch
  • Made your changes
  • Committed your changes
  • Pushed the branch to GitHub
  • Opened a Pull Request

πŸ“š Git & GitHub Glossary

  • Repository (Repo): A storage location for a project containing all of its files and history
  • Fork: A personal copy of someone else's repository
  • Clone: Creating a local copy of a repository on your computer
  • Branch: A parallel version of the repository that doesn't affect the main branch
  • Commit: A saved snapshot of your changes
  • Push: Uploading your local changes to a remote repository
  • Pull Request (PR): A request to merge your changes into the original repository
  • Merge: Combining changes from one branch into another

πŸ™‹ Need Help?

If you get stuck or have questions, feel free to reach out!

Connect with me on LinkedIn 🀝: Patel Muhammad

πŸŽ‰ That's It, Happy hacking!

Congratulations on taking your first step into the world of open source!

We can't wait to see your pull request. πŸš€

Happy Coding! πŸ’»

About

Welcome to this beginner-friendly repository created especially for our GitHub Workshop! If you're new to Git, GitHub, or open-source contributions, you're in the right place. 🌟

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 56.8%
  • CSS 43.2%