Search for the string 'git' in all the files under current directory tree without traversing into '.git' folder and excluding files that have 'git' in their names
find . -path ./.git -prune -o -not -name '*git*' -print |grep git