Take the 2-minute tour ×  This question already has an answer
here:  I have a code base which I want to push to github as open
source. In this git-controlled source tree, I have certain
configuration files which contain passwords. I made sure not to
track this file and I also added it to the .gitignore file.
However, I want to be absolutely positive that no sensitive
information is going to be pushed, perhaps if something slipped
in-between commits or something. I doubt I was careless enough
to do this, but I want to be positive.  Is there a way to "grep"
all of git? I know that sounds weird, but by "all" I guess I
mean every version of very file that ever was. I guess if there
is a command that dumps the diff file for every commit, that
might work?   share|improve this question add comment  marked as
duplicate by Cupcake, random, uthark, sandrstar, Sebastian Sep 6
'13 at 5:54   4 Answers  up vote 150 down vote accepted  Git can
search diffs with the -S option (it's called pickaxe in the
docs)  git log -Spass