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

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: 2 months ago
JSON representation

Clone a single file (or subset of files) from a GitHub repository

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
```