MHN
Add a comment on Hacker News →
1 of 113 comments
  1. What is the right way to make ripgrep behave closer to `git grep`? Plain `rg` ignores files inside hidden folders like `.github`, `rg --hidden` will search `.github` but also search inside `.git`. I currently have this alias that I don't remember where I found: `rg --hidden --glob '!*/.git/*'`. Is there a better way?

    I would prefer a solution that works from outside git repos, so no piping `git ls-files` into rg.