how to check changes made to file in git code example Example: git show diff in modified file git diff [filename]