Every change in your project is in one of three places:
| Place | What it means | git status calls it |
|---|---|---|
| Working folder | changed, but git hasn't been told | Changes not staged for commit / Untracked files |
| Staging area | picked for the next commit | Changes to be committed |
| History | saved in a commit | (not listed: nothing to do) |
The Files tab under the terminal shows the same three places. Run:
bash
git statusgit status -s prints the short form: one line per file, M for changed, A for added, ?? for untracked. The left column is the staging area, the right one the working folder: M is staged, M is not.
Objectives
- Find the staged file.
- Find the file git has never saved.
- Commit only what is staged.