【发布时间】:2015-11-09 20:54:36
【问题描述】:
当我提交时,这个文本会跳起来:
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
这与this question 完全相同,但没有一个答案实际上是在回答这个问题,所以我猜 OP 只是问的有点不对?
【问题讨论】:
-
不,我正在使用带有 Atom、Sublime 或 Notepad++ 的 Windows。尚未决定,但目前我正在测试 Atom。
标签: git git-commit