# Staging Area

> The place where you pick which changes go into your next commit.

**Field:** Software Development  
**Category:** Version Control  
**Also known as:** Index, Stage, git add

## Think of it like

Think of it like a box you pack before you post it. You choose what goes in, then seal it.

## Definition

The staging area is where you put the changes you want in your next commit. You add files to it with git add. Only what is staged goes into the commit; other changes wait in the working directory. This lets you split a messy day of work into clean, separate commits. Git also calls it the index.

## Example

Emma fixed a typo and started a new page. She stages only the typo fix and commits it on its own.

## Example code

```console
$ git add index.html
$ git status --short
A  index.html
```

The A means the file is staged and ready to commit.

## Why it matters

Small, focused commits are easier to read, review and undo. Staging is how you make them.

## Common mistake

Running git add . without looking. It stages every change, even files you did not mean to share.

## Three principles

- **Pick what goes in.** Only staged changes get committed.
- **Added with git add.** One file or many at once.
- **Clean commits.** Split work into clear steps.

## Related terms

- [Working Directory](https://learn.benibix.com/term/development/working-directory)
- [Commit](https://learn.benibix.com/term/development/commit)
- [Git](https://learn.benibix.com/term/development/git)
- [.gitignore](https://learn.benibix.com/term/development/gitignore)
- [Git Status](https://learn.benibix.com/term/development/git-status)

## Taught in

- [Git Add and Commit](https://learn.benibix.com/learn/development-version-control/git-add-and-commit): Git and GitHub, 2/13

---

Source: https://learn.benibix.com/term/development/staging-area
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
