find/search for string in commits in git

git rev-list --all | xargs git grep "string"

deleted file

Find by:

git log --diff-filter=D --summary file

Restore by:

git checkout dc5599 -- file