#git-repository #finding #repo #clone #fuzzy #leverage #power

app git-repo-clone

Git Repo Clone is a command line utility written in rust that leverages the power of fuzzy finding with searching git hosts

1 unstable release

0.2.0 Apr 24, 2022

#10 in #leverage

MIT license

19KB
379 lines

git-repo-clone (grc)

The correct way to clone a git repository

What is grc?

Git Repo Clone is a tool that leverages the power of fuzzy finding with searches on the Github API. This allows for finding the exact repository you're looking for even if you don't know the exact name of the repo or owner and then fuzzing finding on those results.

grc-gif

Usage

Git must be installed. Use grc --help

USAGE:
    grc [OPTIONS] [ARGS] [SUBCOMMAND]

ARGS:
    <repository>     The repository name to search for
    <git args>...    All additional git args. After all other options pass `--` and then the git
                     args. Eg `grc rust -- --bare

OPTIONS:
    -h, --help                          Print help information
    -l, --limit <limit>                 The number of repositories to query and list: default=30
    -n, --new <new name>                A custom name for renaming the repository
    -o, --owner <owner>                 The owner account to search through
    -O, --ownersearch <owner search>    Search for an owner if the exact name isn't known and get
                                        their repos
    -p, --path <path>                   The full path to the parent folder to clone into
    -V, --version                       Print version information

SUBCOMMANDS:
    default-config    Configure your defaults

Configuring defaults

USAGE:
    grc default-config --username <username> --path <clone path>

OPTIONS:
    -h, --help                   Print help information
    -p, --path <clone path>      The default path to clone repositories into when none is specified.
                                 If this is blank and none is specified it will clone into the
                                 current folder
    -u, --username <username>    The default username to search for when no other search parameters
                                 are given

Installation

Cargo

Install with cargo install git-repo-clone or

From source

Clone the repository and install using cargo install --path . --force

Dependencies

~16–28MB
~465K SLoC