git see the new code before committing code example Example: git show diff in modified file git diff [filename]