不是in a Git repository ,而是在GitHub中具体来说 - 如何仅搜索特定存储库/分支的提交消息?
最佳答案
您曾经能够执行此操作,但 GitHub 在 2013 年中期的某个时候删除了此功能。要在本地实现此目的,您可以执行以下操作:
git log -g --grep=STRING
(如果您想搜索其他分支和悬空提交,请使用 -g
标志。)
-g, --walk-reflogs
Instead of walking the commit ancestry chain, walk reflog entries from
the most recent one to older ones.
关于search - 如何在 GitHub 上搜索提交消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18122628/