π 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
- Name it something like:
my-first-site
- Keep it public → Click Create repository
✅ 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
- Open your project folder in VS Code
- Open Terminal (Click Terminal > New Terminal)
- Initialize Git in the folder:
git init
- Add and commit your files:
git add . git commit -m "Initial commit for my website"
- 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!)
- Download GitHub Desktop: desktop.github.com
- Log in with your GitHub account
- Click File > Add Local Repository → Select your folder
- Click Publish repository
- To update: Write a message → Click
Commit to main
→ ThenPush 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
- π ️ 5 Free Tools Every Beginner Developer Should Know in 2025
- π€ How I Use ChatGPT to Debug Code (Even as a Beginner)
- π How I Track My Job Applications Using Notion
Comments
Post a Comment