Search the contents of a git repository with git grep

Bonnie Eisenman
InstructorBonnie Eisenman

Share this video with your friends

Send Tweet

Learn to use git grep to only search through the tracked files in a git repo. This is especially useful when you want to exclude build artifacts or locally installed dependencies, such as webpack bundles or the node_modules directory. You'll also note that git grep is automatically colorized - we'll see how to get the same coloring effect with grep --color.