Skip to main content

gitquarry tree

Print a repository file tree from GitHub without cloning the repository.

Synopsis

Behavior

tree fetches the repository tree through the GitHub API. By default it uses the repository default branch. The output can be filtered before rendering:
  • --path accepts simple glob patterns using * and ?
  • --contains keeps paths containing a text fragment
  • --depth limits displayed path depth, where root entries are depth 1

Options

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

Examples

Print the full tree:
Show Rust files below src:
Limit visible depth:
Use a specific ref and structured output: