In partnership with

📢 Simple Git Workflow Tutorial for Beginners (Step-by-Step Guide)

The 6 easy commands every developer wishes they knew before starting

Hey Builders 👋, Harman here

If you’ve ever felt intimidated by Git — you’re not alone.

When I started I felt that too

I was like do I really have to learn this

But with time and doing it by myself

I learned it is one of the most important thing to learn in the beginning of my career

Many new developers avoid it at first, thinking it’s only for “serious” coders.

But here’s the truth: Git is the safety net that keeps you from losing work,

lets you experiment without fear, and makes teamwork a breeze.

Today, I’m breaking down the 6 core commands you need to start using Git confidently — no jargon, no fluff.

🚀 Why This Matters

So before we begin why we use git in the first place

Right?

like what is point to use this

Well, Think it like stairs of your house

You have to take each step to from point A to B

and if you don’t like you can always come back from B to A

without any issue

and that’s why it:

  • Track changes: Every edit is recorded — you can always go back in time.

  • Collaborate smoothly: Merge changes from multiple people without overwriting work.

  • Experiment safely: Try new features in separate branches without breaking your main project.

🛠 The Step-by-Step Process

Start work → git add → git commit → git push → (others pull) → repeat

These six commands form the core loop of Git.

If you remember nothing else, remember this sequence — it’s how most developers use Git daily.

1. Set up your project

git init

This command initializes a new Git repository in your project folder.
Think of it as turning on Git’s “tracking mode” — from this moment, Git will notice any changes you make to files in that folder.

📌 When to use: At the start of a new project you want Git to track.

2. Add your files

git add

This stages changes so Git knows which files to include in your next commit. The . means “all changes in this folder.”

📌 Why it matters:
Git doesn’t commit changes automatically — you choose what to save. This lets you commit only relevant files instead of everything at once.

3. Save your work (commit)

git commit -m "Your commit message here"

This creates a snapshot of your project at this point in time. The -m lets you add a short message describing what changed.

💡 Pro Tip: Commit messages should be short but descriptive — e.g., "Add signup form validation" instead of "update".

💼 From our Partners

An AI scheduling assistant that lives up to the hype.

Skej is an AI scheduling assistant that works just like a human. You can CC Skej on any email, and watch it book all your meetings. It also handles scheduling, rescheduling, and event reminders.

Imagine life with a 24/7 assistant who responds so naturally, you’ll forget it’s AI.

  • Smart Scheduling
    Skej handles time zones and can scan booking links

  • Customizable
    Create assistants with their own names and personalities.

  • Flexible
    Connect to multiple calendars and email addresses.

  • Works Everywhere
    Write to Skej on email, text, WhatsApp, and Slack.

Whether you’re scheduling a quick team call or coordinating a sales pitch across the globe, Skej gets it done fast and effortlessly. You’ll never want to schedule a meeting yourself, ever again.

The best part? You can try Skej for free right now.

4. Connect to GitHub (or GitLab, Bitbucket)

git remote add origin https://github.com/username/repo.git

This links your local Git repository to an online remote repository so you can store it in the cloud, share it, or collaborate.

📌 Why it matters:
Without a remote, your code is only on your computer — and one crash could wipe it out.

5. Push your changes online

git push -u origin main

This uploads your commits to the remote repository. The -u flag sets “origin main” as your default push location so next time you can just run git push.

📌 When to use: After committing locally and you want the changes saved online or shared with your team.

6. Pull updates before working

git pull origin main

This downloads the latest changes from the remote repository into your local copy. It’s the opposite of push.

📌 Why it matters:
If you’re working with a team (or from multiple devices), pulling first prevents conflicts by making sure you’re starting from the latest version.

Pro Tip: Commit small, meaningful changes often — it makes debugging and collaboration much easier.

🔄 Think of it like this:
Start work → git add → git commit → git push → (others pull) → repeat 

Git is just a loop of saving and syncing changes — once you master this, everything else builds on top of it.

💬 Question for You:
What’s one Git mistake you made when starting out? I’ll feature the funniest (or most painful) ones in next week’s issue.

Want to be featured?

Send us email → [email protected] to get featured

How was Today's Newsletter

If this issue was WSJ article, How would you rate it?

Login or Subscribe to participate

If you like today’s issue, consider subscribing to us.

That’s a wrap! Catch you in next edition. 👋

—Harman

Reply

or to participate

Keep Reading

No posts found