git status

Show the status of the current repository

This command shows the tracked and untracked files, modified files, and the branch name if the repository is on a branch.

It provides an overview of any changes made to the files in the repository since the last commit. Some useful variations of this command include:

  • git status -s: Provides a more compact output with abbreviated status information.
  • git status -b: Shows the branch name along with the status information
  • git status -u: Includes untracked files in the status output.
  • git status -uno: Shows only the tracked files in the status output and excludes untracked files.