如何搜索 git 提交记录

如何搜索 git 提交记录

# 1
git grep <regexp> $(git rev-list --all)

# 2
git log -p --all -G '可通过正则搜索' --pretty=format:'%ci' # 可跨分支搜索 # -S '通过文本搜索'
git branch -a --contains 8beeff00d # 根据 commit 记录获取分析
原文地址:https://www.cnblogs.com/daysme/p/10057756.html