git check file changes by user code example Example: git show diff in modified file git diff [filename]