https://github.com/alok8bb/cloneit
A cli tool to download specific GitHub directories or files
https://github.com/alok8bb/cloneit
cli downgit git github rustlang
Last synced: 7 months ago
JSON representation
A cli tool to download specific GitHub directories or files
- Host: GitHub
- URL: https://github.com/alok8bb/cloneit
- Owner: alok8bb
- License: mit
- Created: 2021-08-06T16:48:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-28T10:46:13.000Z (12 months ago)
- Last Synced: 2025-04-02T05:07:26.031Z (7 months ago)
- Topics: cli, downgit, git, github, rustlang
- Language: Rust
- Homepage:
- Size: 139 KB
- Stars: 81
- Watchers: 3
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloneit
A cli tool to download specific GitHub directories or files.
# Installation
### From git
```bash
git clone https://github.com/alok8bb/cloneit
cd cloneit
bash ./install.sh
```
# Usage
```bash
cloneit 1.0.0
Alok P
Download specific GitHub directories or files
USAGE:
cloneit [OPTIONS] ...
ARGS:
...
URL to the GitHub directory or file. You can pass a single URL or multiple
comma-delimited URLs e.g.
https://github.com/fpic/linpeace.py,https://github.com/s0xf/r2gihdra.c,https://github.com/fpic/defpol/master
OPTIONS:
-h, --help
Print help information
-V, --version
Print version information
-z
Download zipped directory
```
# Examples
### Download a specific folder
```bash
$ cloneit https://github.com/alok8bb/cloneit
```
```bash
$ cloneit https://github.com/alok8bb/cloneit/tree/master/src
```
### Download a file
```bash
$ cloneit https://github.com/alok8bb/cloneit/tree/master/src/main.rs
```
### Downloading and zip the folder/file
Thanks to [@winterrdog](https://github.com/winterrdog) for implementing this feature.
```bash
$ cloneit -z https://github.com/alok8bb/cloneit
```