Search for a string in Git history
Git is one of the most powerful tools in a developers life, here's how to search for stuff in cli.
Kalle Tolonen
April 16, 2024
$ git log -p -S"string" | grep --color=auto -C 5 "string"
This will search for a string in your repo's history and print out five lines from the found string on wards.
Comments
No published comments yet.
Add a Comment
Your comment may be published.