git commit
打开文本编辑器并显示有关要提交的更改的一些信息:
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
我想扩展这个模板来显示
N
最后提交消息的第一行和/或- 最后一次提交的完整消息
当前分支的。我怎样才能做到这一点?