How do you check what files are changed in your Git workspace?

Experience Level: Junior
Tags: Git Source control

Answer

To see all the changes that were done to your Git workspace and were not yet committed, use the git status command.

Simply run the following from the command-line:

git status

This displays the default long-format output. You can also try the short format running the following command:

git status -s

Related Git job interview questions
Git for beginners
Git for beginners

Are you learning Git? Try our test we designed to help you progress faster.

Test yourself