git show diff for file and previous code example Example: git show diff in modified file git diff [filename]