2

我可以设置 git 在进行交互式提交时向我显示差异吗(即没有 -m“msg”)

这会让我看到我正在提交哪些更改。

4

1 回答 1

6

尝试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 #.
于 2012-09-20T16:14:03.280 回答