git check modified files code example
Example 1: how to check git changes before commit
git diff --staged
Example 2: git show files modified since commit
git diff --name-only HEAD~10 HEAD~5
Example 3: git show diff in modified file
git diff [filename]