💾 Archived View for g.codelearn.me › 2019-04-03-git-grep-untracked.gmi captured on 2024-05-10 at 10:59:42. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

git grep --untracked

Turned out I use `git grep` a lot with my VIM (using

EasyGrep

plugin). At some point this plugin just stopped to show me all the available results.

Due to lack of explicit `git grep` usage it was pretty mysterious.

The reason is that `git grep` doesn't search in untracked files. If you want to search in untracked files too just add `--untracked` option to the command like this:

git grep --untracked SomethingILookingFor *

Official git grep doc