Search for string in files within Git history

31.May.2017

Next time when you are stuck looking for a block of code which you know was part of the project but was deleted in an earlier commit, remember that Git is there to help:

This command will show a list of commits where the relevant_string was either added or removed in any PHP file in the project.

Write strong code and prosper!