Git in 20 Minutes? Yes, Even Beginners Can Do It!

πŸ˜… Git? What Even Is That?

Git in 20 Minutes? Yes, Even Beginners Can Do It!

When I first heard about Git, I said:
“What is this thing? Do I really need to learn it?”
Don't worry — just give it 20 minutes, and you’ll get it. ✌️





When I first heard about Git, I had no idea what it was.
“Is it a program? A website? A weird tech word?” 😡‍πŸ’«
Turns out, Git is actually a lifesaver — especially if you're writing code.

πŸ’‘ So What Exactly Is Git?

Git is a version control system. That means it keeps track of all the changes you make to your files.
Imagine working on a school paper — and being able to see every single draft you ever wrote, and go back to any version at any time. ✨

That’s what Git does for your code. You can:

  • Go back to earlier versions if you mess something up
  • Try new features without breaking the main project
  • Work with other people without stepping on each other’s code

🎯 Why Should I Learn Git?

If you're planning to build projects, collaborate with others, or apply for tech jobs — Git is a must. It’s used everywhere in real-life development teams and online platforms like GitHub.

The best part? You don’t need to memorize everything. Start with the basics, like commit and push, and you’re good to go!

Learning Git means you’re working like a real developer — from day one. πŸ§‘‍πŸ’»


✍️ Step 0: Create a GitHub Account & Repository First

1. Sign up on GitHub: Go to github.com and create a free account.
2. Create a new repository: Click the [+] icon in the top right → Choose New repository

  1. Name it something like: my-first-site
  2. Keep it public → Click Create repository

github page


✅ Done! Your GitHub is ready to connect.


πŸ€“ So... What Is Git Anyway?

Git is like a time machine for your code — it tracks every change you make to your files.
Did something break? Want to go back in time? Git's got you. πŸ’‘


πŸ’» Real-Life Example: Registering an HTML/CSS Project with Git

my-first-site/
├── index.html
└── style.css

πŸ“Ÿ Method 1: Using Git with Command Line

πŸͺœ Step-by-Step

  1. Open your project folder in VS Code
  2. Open Terminal (Click Terminal > New Terminal)
  3. Initialize Git in the folder:
    git init
  4. Add and commit your files:
    git add .
    git commit -m "Initial commit for my website"
  5. Connect to your GitHub repository:
    git remote add origin https://github.com/yourusername/my-first-site.git
    git branch -M main
    git push -u origin main

πŸŽ‰ You just uploaded your code to GitHub!


πŸ–±️ Method 2: Using GitHub Desktop (No Commands Needed!)



Github desktop



  1. Download GitHub Desktop: desktop.github.com
  2. Log in with your GitHub account
  3. Click File > Add Local Repository → Select your folder
  4. Click Publish repository
  5. To update: Write a message → Click Commit to main → Then Push origin

✅ That’s it! No code required. Just point and click.


πŸ“Š CLI vs GitHub Desktop Comparison

Feature Command Line (CLI) GitHub Desktop
Learning curve Hard at first but powerful Very beginner-friendly
Making mistakes Fewer as you learn Visual feedback helps avoid them
Teamwork & control More control for power users Easy and collaborative

πŸ“š Recap

  • Git = Tracks your code’s history
  • GitHub = Online space to store and share code
  • You can start with GUI tools and learn commands later!

πŸ’¬ What About You?

What was the hardest part when you first learned Git?
Did you prefer the command line or GitHub Desktop?
Share your experience in the comments below! 😊


πŸ”— More Posts You Might Like



Comments