https://github.com/kyle-west/clone-lite-cli
Clone a single file (or subset of files) from a GitHub repository
https://github.com/kyle-west/clone-lite-cli
Last synced: about 2 months ago
JSON representation
Clone a single file (or subset of files) from a GitHub repository
- Host: GitHub
- URL: https://github.com/kyle-west/clone-lite-cli
- Owner: kyle-west
- Created: 2018-07-06T15:13:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-09T13:59:09.000Z (almost 7 years ago)
- Last Synced: 2025-03-21T19:47:18.347Z (2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/clone-lite-cli
- Size: 5.86 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clone-lite
Have you ever wanted to run `git clone` on a single file? This CLI allows for you to do just that.
Below is an example of how to clone a single `package.json` file from a repo.
```sh
clone-lite https://github.com/owner/repo.git#version-or-branch package.json
```
## Installing
To install run
```sh
npm install -g clone-lite
```For private repos, you will need to have a [person access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) in the `GITHUB_AUTH_TOKEN` environment variable.
```sh
export GITHUB_AUTH_TOKEN=the-oauth-access-token
```