How to find the Git commit that introduced a string in any branch?
You can do: git log -S <search string> –source –all To find all commits that added or removed the fixed string search string. The –all parameter means to start from every branch and –source means to show which of those branches led to finding that commit. It’s often useful to add -p to show the … Read more