git status

A file in Git can be in these states:

  • Untracked → not tracked by Git
  • Staged → ready for the next commit
  • Committed → saved in repository history

git status : Checks the current status of the Git repository.