When does Git consider a tracked file modified?
Whenever git log is displayed.
git log
Whenever the file is opened in an editor, even if no content changes.
When its working-tree content differs from the version in the recorded snapshot.
Only at the moment the repository is initialized.