Version Control 101: Navigating Git & GitHub Like a Pro

Leah MuchiriLeah Muchiri
2 min read

Welcome back to LishTech Chronicles β€” where tech knowledge meets good vibes πŸ’ͺ🏽πŸ”₯. If you're a developer or aspiring to be one , you've probably heard people throw around the words Git and GitHub like secret codes in a tech cult. Well, worry not! Today, I'm spilling all the tea β˜•οΈ on how to become a Git Boss β€” without breaking a sweat.

What is Version Control? πŸ€”

Imagine writing code without a backup... and then your laptop crashes 😭. Or worse, your code is working perfectly, but you decide to "just add one more feature" β€” and BOOM! Everything breaks. That's where Version Control Systems (VCS) like Git come in β€” your personal time machine for code.

What is Git?

Git is that silent guardian, that watchful protector... a Dark Knight πŸ¦‡βœ¨ for your code.

Simply put, Git helps you track changes in your code so you can:

Go back to previous versions

Collaborate with others

Avoid breaking your whole project with one small mistake (aka Developer Heartbreak πŸ’”πŸ’»)

Here's how Git works behind the scenes:

Installing Git πŸ”₯

No installation, no magic β€” let's get Git installed:

πŸ‘‰ Download Git here (https://git-scm.com/downloads)

After installing, open your terminal and type:

git --version

If you see a version number, congrats πŸŽ‰ β€” you're officially a Git Developerβ„’!

What is GitHub? πŸ€“

Now, if Git is your time machine, GitHub is the cloud where all your time-travel adventures are stored β˜οΈπŸš€.

Git helps you track changes locally... but GitHub helps you share your work, collaborate with others, and even contribute to open source projects.

How to Push Your First Project πŸš€

Create a repo on GitHub

Copy the repo URL

Back to your terminal:

type;

git remote add origin URL

git push origin main

Boom πŸ’₯! Your project is live and ready to break the internet.

Bonus Tip πŸ”₯: How to Impress Interviewers with Git

When they ask: "Do you know Git?"

You reply: "I don't just know Git... I commit to Git."

Conclusion

Git & GitHub might sound like a tech power couple β€” but once you get the hang of it, you'll realize they're more like your loyal ride-or-die besties. So if you're still out here coding without version control... I'm judging you silently πŸ‘€.

Author: lishyamuchiri

0
Subscribe to my newsletter

Read articles from Leah Muchiri directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Leah Muchiri
Leah Muchiri