Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/britter/gh-get
Get GitHub repositories with ease
https://github.com/britter/gh-get
gh-extension
Last synced: about 1 month ago
JSON representation
Get GitHub repositories with ease
- Host: GitHub
- URL: https://github.com/britter/gh-get
- Owner: britter
- License: apache-2.0
- Created: 2022-04-07T14:09:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-27T15:42:59.000Z (about 1 month ago)
- Last Synced: 2024-11-27T16:39:58.574Z (about 1 month ago)
- Topics: gh-extension
- Language: Nix
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# gh-get
gh-get is a [GitHub CLI](https://cli.github.com/) based re-implementation of [ghq](https://github.com/x-motemen/ghq).
## Installing the extension
`gh extension install britter/gh-get`
## Usage
`gh get OWNER/REPO`
This will clone the repository identified by OWNER/REPO into `$HOME/github/$OWNER/$REPO`.
Example:
`gh get britter/gh-get` will clone this respository into `~/github/britter/gh-get`
## Configuration
There are two environment variables that control the location gh-get clones repositories to:
- `GH_GET_FOLDER`: The name of the folder inside the user home that repositories are cloned into. The defaults to `github` which means repositories are cloned into `$HOME/github`. If you prefer a different folder name or path inside your user home, configure this variable.
- `GH_GET_ROOT`: The full path to to the folder that repositories are cloned into. This defaults to `$HOME/$GH_GET_FOLDER`. Change this is you want repositories to be cloned to a location _outside_ your user home.## License
Code is under the [Apache Licence v2](https://www.apache.org/licenses/LICENSE-2.0.txt).