How to search for strings in Git commit additions or deletions Use the `git log -S` to find a commit than added or removed a string from a code base.