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

github.com

2 points by sanjaykumar584 12 hours ago

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.