What is "Untracked" and "Modified" in Vs Code

Viewed 6248

I'm learning react and whenever I create a new component every component I create is marked as UNTRACKED, but the files which are auto generated by "npx create-react-app" are marked as MODIFIED when I edit them.

But the question is what are these marks and do I have to care about them?

The Files structure

1 Answers

Modified - Files that have been edited since your last commit.

Untracked - Any files in your working directory that were not in your last snapshot and are not in your staging area.

This warnings are git warnings, you can get rid of them by committing your changes

git add .
git commit -m "Any message - what you have done since your last commit"
Related