【问题标题】:git commit message in one line? [duplicate]git 在一行中提交消息? [复制]
【发布时间】: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


【解决方案1】:

我尝试了以下方法:

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

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

【讨论】:

    猜你喜欢
    • 2021-09-11
    • 2011-04-25
    • 2016-10-09
    • 1970-01-01
    • 2012-05-04
    • 2018-04-17
    • 2021-09-24
    • 1970-01-01
    • 2011-09-07
    相关资源
    最近更新 更多