How to find 'lost' code with a constant in Git
This will list all commits that added or removed the string FOOBAR from any file:
git log --all -p -SFOOBAR
This will list all commits that added or removed the string FOOBAR from any file:
git log --all -p -SFOOBAR