当我提交时,这段文本会跳起来:
我希望这篇信息性文章能够同时展示我上一次提交的信息,而无需我去查看git log、git show或类似的内容。
例如:
Please enter the commit message for your changes. Lines starting
with '#' will be ignored, and an empty message aborts the commit.
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
Changes to be committed:
new file: modules/new_file.txt
我希望这篇信息性文章能够同时展示我上一次提交的信息,而无需我去查看git log、git show或类似的内容。
例如:
(...)
Changes to be committed:
new file: modules/new_file.txt
Previous commit message:
[FIX] Fixed the foo.bar module
这与此问题完全相同,但是没有一个答案实际回答了这个问题,所以我猜OP可能表述有误?