git search in all commits code example Example: git search all commits for string git log -S <whatever> --source --all