Reputation: 4755
git log -p | grep "BUSINESS_VERSION=3.13.0.140"
-BUSINESS_VERSION=3.13.0.140
+BUSINESS_VERSION=3.13.0.140
I know I have the changes including the String "BUSINESS_VERSION=3.13.0.140" How do I know in which commit number I made these changes?
Upvotes: 0
Views: 18
Reputation: 30878
git log -G"BUSINESS_VERSION=3.13.0.140"
# or
git log -S"BUSINESS_VERSION=3.13.0.140"
Both should work in your case, but -S
and -G
behave differently in some cases.
Upvotes: 2