How to search a Git repository by commit message

To Nha Notes | Aug. 15, 2022, 10:56 a.m.

  • Search commits by text from git log:

git log --all --grep='Text to serach'
 

  • Show the changes from found commit ID:

git show <FOUND_COMMIT_ID>

https://github.com/<OWNER>/<REPO>/commit/<FOUND_COMMIT_ID>