A lightweight CLI tool to copy files or folders directly from a GitHub repository using a URL — no need to clone the whole repo!
- 🚀 Copy entire repositories, folders, or single files from GitHub
- 📂 Specify a destination folder
- 🪶 No dependencies on
git— works via GitHub’s HTTP interface - 🧱 Built with Bun for speed and portability
Currently, gitc supports only GitHub URLs.
Support for other Git providers (GitLab, Bitbucket, etc.) is planned for future releases.
👉 Contributions are welcome! Feel free to open an issue or raise a PR.
Install globally using your preferred package manager:
pnpm add -g gitcnpm install -g gitcbun add -g gitcgitc <git_url> [dest_folder]| Parameter | Description |
|---|---|
<git_url> |
The GitHub URL of the repo, folder, or file |
[dest_folder] |
(Optional) Folder name to save the copied content |
gitc https://github.com/devravinder/imagesCopy to a specific folder:
gitc https://github.com/devravinder/images picsgitc https://github.com/devravinder/react-ts-learn/tree/master/rare-dev-shadcn-registry/registryCopy to a specific folder:
gitc https://github.com/devravinder/react-ts-learn/tree/master/rare-dev-shadcn-registry/registry own-registrygitc https://github.com/devravinder/react-ts-learn/blob/master/rare-dev-shadcn-registry/registry.jsonCopy to a specific folder:
gitc https://github.com/devravinder/react-ts-learn/blob/master/rare-dev-shadcn-registry/registry.json configsSteps to build and publish:
-
Initialize project
bun init
-
Modify files and update scripts in
package.json -
Build
bun run build
-
Publish to npm
bun run push # login if needed bunx npm login
Ravinder Reddy Kothabad 📦 GitHub: @devravinder
MIT License © 2025 devravinder