Run git status
In any Git repository, running git status gives you a complete snapshot of your working tree. The output is split into labeled sections so you always know what category each file falls into.
git status
# Example output:
# On branch main
# Your branch is up to date with 'origin/main'.
#
# Changes to be committed:
# (use "git restore --staged <file>..." to unstage)
# modified: src/app.ts
#
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# modified: src/utils.ts
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
# README.mdMake it a habit: run git status before and after every git add or git commit.
