git diff shows whole file changed code example Example: git show diff in modified file git diff [filename]