There's a new utility called The Silversearcher
sudo apt install silversearcher-ag
It works closely with Git and other VCS. So you won't get anything in a .git or another directory.
You can simply use
ag "Search query"
And it will do the task for you!