Search for Deleted Code via Git Command Line Leave a reply $ git log -p --all -S 'string to search' $ git log -p --all -G '(reg-ex-to-use.*)'