To Nha Notes | Sept. 27, 2022, 4:16 p.m.
To find which commits and which files a string was added or removed in:
git log -S'search string' --oneline --name-status
To see the diff of that
git log -S'search string' -p | grep 'search string' -C5
You can also do a regex search by using -G instead of -S