FreeKB - View the status of a file in Git
View the status of a file in Git

Home > Search

If you are not familiar with Git, check out our getting started article. These examples are based on Linux. This assumes you have already added a file in Git.

The git status command will show if a file is ready to be committed.

git status
. . .
Changes to be committed:
. . .
  new file: foo.txt


When a change is made to a staged or commited file, the file will be listed as modified in the git status command.

git status
. . .
  modified: example.txt


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter in the box below so that we can be sure you are a human.