Clone only the directories you need from large GitHub repositories.
gitsub clone <repo-url> <directory> [directory...]Example:
gitsub clone https://github.com/tensorflow/tensorflow tensorflow/coreOr pass a GitHub directory URL directly:
gitsub clone https://github.com/tensorflow/tensorflow/tree/master/tensorflow/core- Git 2.25+
- Go 1.21+ (to build)
go build ./cmd/gitsubThe static web tool lives in docs/. To publish via GitHub Pages, set the
repository's Pages source to the docs/ folder on the main branch.
Gitsub uses sparse checkout with partial clone:
git clone --filter=blob:none --sparse <repo>
git sparse-checkout set <directory>