如何在 git 存储库中获取与安全相关的提交?
How to get security relevant commits in a git repository?
我只是在考虑如何最好地使用 git 日志输出与安全相关的 git 提交。
也许:
git log all --grep='security'
如有更好的建议,我将不胜感激。
git log --pretty=format:'%h %aI | %s%d [%an]' | grep -i "security"
应该列出其中包含关键字“security”的所有提交。
希望这就是您要找的。
我只是在考虑如何最好地使用 git 日志输出与安全相关的 git 提交。
也许:
git log all --grep='security'
如有更好的建议,我将不胜感激。
git log --pretty=format:'%h %aI | %s%d [%an]' | grep -i "security"
应该列出其中包含关键字“security”的所有提交。
希望这就是您要找的。