Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

🚀 Git & GitHub Mastery Roadmap – From Zero to Hero (Fun & Beginner-Friendly)

Welcome to the most enjoyable way to learn Git and GitHub!

Think of Git as your time machine for code, and GitHub as your superhero headquarters where you store, showcase, and collaborate on projects. This README is your complete step-by-step adventure map. Follow it like a game – level up as you go! 🎮

Level 0: First-Time Setup (Do this once on your machine)

#Tell Git who you are (so your commits have your name!)
git config --global user.name "John Doe"
git config --global user.email "john@example.com"

Level 1: Start a New Project (Local Repo)

mkdir my-awesome-project       # Create project folder
cd my-awesome-project       # Go inside
git init       # 🐣 Initialize Git repo (creates hidden .git folder)
You now have a local repository! 🎉

Level 2: Make Changes & Save Snapshots

git status       # 🔍 See what's changed (red = unstaged, green = staged)
git add .       # Stage ALL changes (or git add filename for specific files)

git status        # Now everything is green and ready!

git commit -m "Add landing page with cool animation"        # Save snapshot

Best commit message style:
Present tense
Short (under 50 chars)
Example: "Add user authentication" | "Fix navbar bug on mobile"


Level 3: Connect to GitHub (Remote Repository)

Go to GitHub → New Repository → Name it → Create (DON’T initialize with README)
Copy the repo URL

git remote add origin https://github.com/username/my-awesome-project.git
git branch -M main        # Rename default branch to main (modern standard)
git push -u origin main        # First push! 🚀 (-u sets upstream tracking)
Now your code lives safely on GitHub!


Level 4: The Daily Workflow (You’ll use this 90% of the time)

#After making changes
git add .
git commit -m "Your meaningful message"
git push        # Simple push (because of -u earlier)

Level 5: Stay in Sync with the World

git pull       # Grab latest changes from GitHub

git fetch       # Check what’s new without merging

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors