为了做到这一点,您可以像另一篇文章中所解释的那样,在提交内容中使用grep。git grep "Your Link" $(git rev-list --all) 另一个解决方案是使用日志命令:log。git log -S"Your Link"