How do you check what files are changed in your Git workspace?
Experience Level: Junior
Tags: GitSource 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
How do you add changed files from your Git workspace to Staging Area (Index)?
GitSource control JuniorWhat is .git folder?
GitSource control JuniorWhat is Staging Area (or Index) in Git?
GitSource control JuniorWhat does the Git clone command do?
GitSource control JuniorHow do you add a new file to the Git remote repository?
Git Junior