git log -S'some_string' git whatchanged -p (after the pager comes up, type '/' and then 'some_string')