I think there should be a flag in the CLI version to ignore files in .gitignore.
Actually, it's probably even better to ignore them by default and add a --no-ignore flag. For example, fd does this:
> fd --help
...
-I, --no-ignore
Show search results from files and directories that would otherwise be ignored by
'.gitignore', '.ignore', '.fdignore', or the global ignore file, The flag can be
overridden with --ignore.
...
Probably related: #147 and #111 (comment)