Header

git status

The command to check the current state of your working directory

Checking the current status of your working directory

Using the status command allows you to view a list of files that have been modified in the repository since the last commit.

To use it, make sure you're in the root directory of your repository in your terminal, and type:

$ git status

You'll see a useful list of files, something like this:

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

    new file:   .gitignore

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    deleted:    assets/images/cheese/gorgonzola.svg

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    assets/images/cheese/edam.svg

Any files that have been staged, ready to commit will be at the top, highlighted in green. Unstaged changes will be highlighted in red, with new/modified files first, then deleted files second. Instructions for how to stage/unstage files will be shown below above each set respectively.

Proudly powered by Katapult. Running on 100% renewable energy.