I am searching through a Git repository and would like to include the .git folder.
.git
grep does not include this folder if I run
grep
You can also search for specific types of hidden files like so for hidden directory files:
grep -r --include=*.directory "search-string"
This may work better than some of the other options. The other options that worked can be too slow.