Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mohd-akram/ghget
A script to download files/directories from GitHub.
https://github.com/mohd-akram/ghget
curl download github posix script shell
Last synced: 2 months ago
JSON representation
A script to download files/directories from GitHub.
- Host: GitHub
- URL: https://github.com/mohd-akram/ghget
- Owner: mohd-akram
- License: mit
- Created: 2021-02-19T14:06:19.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-12T13:21:37.000Z (12 months ago)
- Last Synced: 2024-04-16T06:40:52.659Z (8 months ago)
- Topics: curl, download, github, posix, script, shell
- Language: Shell
- Homepage: https://git.io/ghget
- Size: 3.91 KB
- Stars: 28
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ghget
A POSIX shell script to download files/directories from GitHub repositories.
It uses parallel transfers via `curl`, with a progress indicator.## Install
Run `make install` as root to install `ghget` to `/usr/local/bin`.
or
Copy `ghget` to a directory in your `PATH`.
## Usage
ghget [-o path] url
## Examples
### Get a directory
ghget https://github.com/fivethirtyeight/data/tree/master/airline-safety
#### Output to custom directory
ghget -o airlines https://github.com/fivethirtyeight/data/tree/master/airline-safety
### Get a single file
ghget https://github.com/fivethirtyeight/data/blob/master/index.csv
#### Output to custom file
ghget -o list.csv https://github.com/fivethirtyeight/data/blob/master/index.csv
#### Output to stdout
ghget -o - https://github.com/fivethirtyeight/data/blob/master/index.csv
### Get an entire repo
ghget https://github.com/fivethirtyeight/data