尝试 git commit -v
正如它在git-commit手册页中所说:
-v , --verbose
Show unified diff between the HEAD commit and what would be
committed at the bottom of the commit message template. Note
that this diff output doesn’t have its lines prefixed with #.
Run Code Online (Sandbox Code Playgroud)