Starting to watch files in Git
Let's now learn how to enable file tracking in Git. For this, there is a special command add, followed by a space followed by the file name:
git add index.html
After running this command on a specific file, that file will become monitored. Let's check this with the status command:
git status
As a result of executing this command, our file will appear in a different section:
Changes to be committed:
new file: index.html
Make every file in your project trackable.