Git status
git status shows the branch you are on and the state of your files: untracked, changed but not staged, or staged for the next commit.
It also tells you which command to run next. Use --short for a compact list.
A new, untracked file
git status
On branch main
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
index.html
nothing added to commit but untracked files present (use "git add" to track)
The short format
M means modified and ?? means untracked:
git status --short
M index.html
?? style2.css