【发布时间】:2019-07-26 00:18:21
【问题描述】:
有没有办法在一行中显示整个提交消息?
这是我的提交信息:
git log -1
here this is a change
it is a empty change
输出:
here this is a change it is a empty change
【问题讨论】:
-
尝试添加--oneline?
标签: 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
【问题讨论】:
标签: git commit git-commit
我尝试了以下方法:
git show -s --format='%B' <Commit ID> | tr -d '\n'; echo
【讨论】: