Easy Tutorial
❮ Git Quiz Git Fetch ❯

git status Command

Git Basic Operations


The git status command is used to check if there have been any modifications to the files since the last commit.

$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

    new file:   README
    new file:   hello.php

Typically, we use the -s parameter to get a concise output:

$ git status -s
AM README
A  hello.php

The AM status indicates that the file has been modified after being added to the staging area.


Git Basic Operations

❮ Git Quiz Git Fetch ❯