Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以设置 git 在进行交互式提交时向我显示差异吗(即没有 -m“msg”)
这会让我看到我正在提交哪些更改。
尝试git commit -v
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 #.