https://github.com/idea2app/git-utility
A file/folder downloader based on Git CLI, TypeScript & Node.js
https://github.com/idea2app/git-utility
cli download file git
Last synced: 2 months ago
JSON representation
A file/folder downloader based on Git CLI, TypeScript & Node.js
- Host: GitHub
- URL: https://github.com/idea2app/git-utility
- Owner: idea2app
- Created: 2023-06-26T13:42:17.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-08-27T00:12:30.000Z (10 months ago)
- Last Synced: 2025-09-27T12:29:29.286Z (9 months ago)
- Topics: cli, download, file, git
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Git utility
A **Git utility CLI tool** with some missing sub commands
[][2]
[][3]
[][4]
## Installation
```shell
npm i git-utility -g
```
or run with `npx` / `pnpx` directly:
```shell
npx git-utility # your arguments here
```
## Usage
### Download folders or files from Git repositories
```shell
# Download entire repository
xgit download https://github.com/your-org/your-repo
# Download from specific branch
xgit download https://github.com/your-org/your-repo main
# Download specific folder or file
xgit download https://github.com/your-org/your-repo main path/to/your-folder/or-file
```
### Manage Git submodules
```shell
# List current submodules
xgit submodule remove
# Remove a specific submodule
xgit submodule remove path/to/submodule
```
## Commands
- `xgit download [branchName] [folderOrFilePath]` - Download folders or files from a Git repository
- `xgit submodule remove [path]` - Remove a Git submodule
[1]: https://git-scm.com/
[2]: https://libraries.io/npm/git-utility
[3]: https://github.com/idea2app/Git-utility/actions/workflows/main.yml
[4]: https://nodei.co/npm/git-utility/