Show HN: GitSlice – Extract folders or files from GitHub using CLI

2 sanjaykumar584 0 7/3/2025, 10:48:00 AM github.com ↗
Hi HN

I built GitSlice, a fast CLI tool that lets you extract just a folder or file from a GitHub repo — without cloning the whole thing.

It uses sparse-checkout under the hood and resolves GitHub URLs automatically. Useful for grabbing only what you need from giant monorepos.

Example: gitslice https://github.com/05sanjaykumar/Flappy-Bird-OpenCV/blob/mai...

Supports folders and files Auto-detects branches CLI only, no GUI fluff Fully open-source

Repo: https://github.com/05sanjaykumar/gitslice Let me know what you think or where it could be better.

Comments (0)

No comments yet