Skip to main content

gitquarry code

Search repository file contents from GitHub without cloning the repository.

Synopsis

Behavior

code first fetches the repository tree, filters candidate blobs, then fetches matching file contents through the GitHub API. Use --path, --limit, and --max-file-bytes to keep broad searches bounded. Files that cannot be decoded as UTF-8 text are skipped.

Options

--path can be repeated. Repeated patterns use OR semantics.

Examples

Search for literal text:
Search with a regex and context:
Use structured output for automation: