Search for a password in git

Did you encounter this problem: You need to find a specific search term in the whole git history?

You can do that by:

git log -S$searchstring

$searchstring is what you are looking for.

If you want to look for all commits by the name of the author use:

git log --author $author

And in case you need to combine it:

git log --author $author -S$searchstring

Did it help you?



Leave a Reply