I am looking for a git command which would allow me to find all of the commits where a specific string was added.
The string could also be a regular expression, and I also want to retrieve the specific string in the commit that matches that expression.
Example -
I would like to find all the commits where the pattern - // FIX - BUG-XXXX
was added to the files. Including matching lines such as: // FIX - BUG-1234
and
// FIX - BUG-2345
etc.