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

https://github.com/2nthony/ghq

GitHub repositories Query manager.
https://github.com/2nthony/ghq

cli ghq git git-cli git-management git-manager opinionated repositories repositories-manager

Last synced: about 1 year ago
JSON representation

GitHub repositories Query manager.

Awesome Lists containing this project

README

          

# ghq

[![version](https://img.shields.io/npm/v/ghq-node?label=&color=29BC9B)](https://npm.im/ghq-node) [![downloads](https://img.shields.io/npm/dm/ghq-node?label=&color=29BC9B)](https://npm.im/ghq-node)

**G**it**H**ub repositories **Q**uery manager. The [ghq](https://github.com/x-motemen/ghq)(Node.js implemented).

## Features

- Light-weight. No dependency, just a **10+ Kb** single file.
- Git flavoured.
- Support one-time usage via `npx`.

## Prerequisites

- [Git](https://git-scm.com/) CLI installed.
- Node.js

## Usage

```sh
# global install
npm i -g ghq-node
$ ghq

# one-time usage, RECOMMENDED
npx ghq-node
```

```console
ghq/0.0.0

Usage:
$ ghq [options]

Commands:
clone [repo] Clone/sync with a remote repository
init [repo] Init a new repository
list [query] List local repositories
config Manage the ghq configuration file
root Show repositories' root

For more info, run any command with the `--help` flag:
$ ghq clone --help
$ ghq init --help
$ ghq list --help
$ ghq config --help
$ ghq root --help

Options:
-v, --version Display version number
-h, --help Display this message
```

## Directory

```sh
~
├── .ghqrc # config file
└── ghq
└── github.com
├── 2nthony
│   ├── dotfiles
│   ├── ghq
│   └── vercel-toast
├── ravenxrz
│   └── dotfiles
└── vuejs
   └── vue
```

## Inspirations

- [x-motemen/ghq](https://github.com/x-motemen/ghq)

## Sponsors

[![sponsors](https://cdn.jsdelivr.net/gh/2nthony/sponsors-image/sponsors.svg)](https://github.com/sponsors/2nthony)

## License

MIT © [2nthony](https://github.com/sponsors/2nthony)