🔀Git Status
Also known as git status, Git Status Command
A command that shows which files changed, which are staged and which are new.
Think of it like
Think of it like looking at your desk before you leave. You see what is done, what is half done and what is new.
Example
Why it matters
Definition
Example code
console
$ git status --short
M index.html
M style.css
?? notes.txtCommon mistake
Key takeaways
- 1Read only. It never changes anything.
- 2Three lists. Staged, not staged and untracked.
- 3Run it often. Check before each commit.