【问题标题】:How to get security relevant commits in a git repository? [closed]如何在 git 存储库中获取与安全相关的提交? [关闭]
【发布时间】:2021-05-09 23:19:30
【问题描述】:

我只是在考虑如何最好地使用 git log 输出与安全相关的 git 提交。

也许:

git log all --grep='security'

如果有更好的想法,我将不胜感激。

【问题讨论】:

    标签: git security logging grep commit


    【解决方案1】:
    git log --pretty=format:'%h %aI | %s%d [%an]' | grep -i "security"
    

    应该列出所有包含关键字“security”的提交。

    我希望它是您正在寻找的。​​p>

    【讨论】:

    • 非常感谢,简单但很好的解决方案!
    • @Roland 我很高兴它有帮助! :)
    猜你喜欢
    • 2019-10-10
    • 1970-01-01
    • 2017-12-13
    • 2015-02-13
    • 1970-01-01
    • 2015-11-12
    • 1970-01-01
    • 2014-10-23
    • 1970-01-01
    相关资源
    最近更新 更多