June 15, 2026 · by Meegrow Labs

What Is git add? Stage Files Before You Save

You sit down after a long session and realise you have edited five or six files. Some are polished. Some are half finished. Some you might throw away. You want to save your work, but you do not want to save all of it at once. So how do you choose?

The git add command stages the files you pick, telling Git to get exactly those ready for your next save while everything else waits.

Think of it like an Instagram post. You shot many photos, but you choose only the best few to share. The rest stay on your phone. Staging works the same way: you point at the changes you want, and only those go into the next checkpoint.

What does git add actually do?

When you change files, Git notices. But it does not save anything on its own. It waits for you to say which changes belong together.

That is what git add is for. The word git is the tool you call. The word add means “stage this for saving.” Staging is just Git’s waiting room: a place where you gather the changes you want before you lock them in.

Nothing is saved permanently yet. You are simply choosing. If you understand version control basics from the previous lesson on switching on Git with git init, this is the natural next step.

How do I stage just the files I want?

You have two simple choices. Pick one file, or pick everything.

To stage a single file, name it directly:

git add notes.txt

To stage every changed file in one go, use a dot:

git add .

The dot means “all changed files.” It is the quickest option when everything you have touched belongs in the same save. When you want more control, name files one by one instead.

Why does staging put me in control?

Staging exists so that you decide what gets saved, not Git. You made lots of edits spread across many files. You point at the ones you want and stage just those. The rest sit untouched.

This keeps your saves clean. Each checkpoint can hold one clear set of changes instead of a messy mix. Later, when you look back through your history, every save tells a tidy story.

One file or all of them, the call is always yours. You stay in the driver’s seat.

How do I try git add right now?

Open a terminal inside a folder where Git is already switched on, edit a file or two, then type:

git add .

That stages your changes. Nothing flashes on screen, and that is fine. Git has quietly moved your changes into the waiting room, ready for the next step.

If you want to check what is now staged, you can run git status to see the list. Your chosen files will show up as ready to save.

Key takeaways

  • git add stages changes for your next save, without saving them yet.
  • git add filename stages one file; git add . stages every changed file at once.
  • Staging is a waiting room: you choose what goes into the next checkpoint and the rest waits.
  • This keeps each save clean and easy to read later.
  • You stay in control: one file or all, the choice is always yours.

Once your changes are staged, you are ready to lock them in. Next up is your first commit, where you turn a staged set of changes into a real, permanent checkpoint. You can follow the full path step by step in the free Zero to AI Hero course.


🚀 Take the full free course: Zero to AI Hero — learn to build with AI from scratch. New lessons daily, in Hindi & English.

Meegrow Labs

We help India go from zero to AI hero — learn to use & build with AI from scratch, in Hindi & English. Start the free course →

Want to actually learn this?

151 free 2-minute lessons — from "what's a file?" to building with AI.

▶ Start the free course