Git has a subcommand, grep. It works almost like the usual grep, but is scoped to whatever is in the currently checked out index.
This means that
git grep term might not have any hits now, but after
adding it to the index, that is staging the files, it will show up.