一行中有git commit消息吗?

时间:2019-03-04 16:25:35

标签: git commit git-commit

是否可以在一行中显示整个提交消息?

这是我的提交消息:

git log -1

here this is a change
it is a empty change

输出:

here this is a change it is a empty change

1 个答案:

答案 0 :(得分:0)

我尝试了以下操作:

git show -s --format='%B' <Commit ID> | tr -d '\n'; echo

参考: Print git commits body lines joined in one line