What problem does it solve?
Provides a fast, low-friction way to read or analyze code and documentation from GitHub repositories without creating a permanent workspace, avoiding large clones and unnecessary history.
Core Features & Use Cases
- Shallow full-repo clone to a standardized temporary path for exploring project structure or running repository-wide searches.
- Single-file retrieval using raw.githubusercontent URLs for fast access to individual files like READMEs, configuration, or source snippets.
- Practical rules and fallbacks: prefer --depth=1, reuse existing /tmp clones, try main then master branches, and avoid committing from temporary clones.
- Use Case: Inspect a project's API design by shallow-cloning the repo to /tmp for a quick grep across source files, or fetch a single README or LICENSE file directly.
Quick Start
Use github-fetch to read the README or fetch a single file from https://raw.githubusercontent.com/USER/REPO/main/path/to/file.