An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Git utility

A **Git utility CLI tool** with some missing sub commands

[![NPM Dependency](https://img.shields.io/librariesio/github/idea2app/Git-utility.svg)][2]
[![CI & CD](https://github.com/idea2app/Git-utility/actions/workflows/main.yml/badge.svg)][3]

[![NPM](https://nodei.co/npm/git-utility.png?downloads=true&downloadRank=true&stars=true)][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/