сравните дерево с рабочим деревом или индексом (Compare a tree to the working tree or index)
OPERATING MODES
You can choose whether you want to trust the index file entirely
(using the --cached
flag) or ask the diff logic to show any files
that don't match the stat state as being "tentatively changed".
Both of these operations are very useful indeed.