https://github.com/mopemope/rrc
rrc - Manage remote repository clones
https://github.com/mopemope/rrc
ghq git rrc
Last synced: 4 months ago
JSON representation
rrc - Manage remote repository clones
- Host: GitHub
- URL: https://github.com/mopemope/rrc
- Owner: mopemope
- License: apache-2.0
- Created: 2020-01-07T14:07:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-17T04:00:31.000Z (7 months ago)
- Last Synced: 2025-05-18T18:17:12.505Z (6 months ago)
- Topics: ghq, git, rrc
- Language: Rust
- Size: 114 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rrc - Manage remote repository clones
[](https://crates.io/crates/rrc)
`rrc` is a remote repository management tool like [ghq][1] written in Rust.
`rrc` provides a way to organize remote repository clones, like go get does.
`rrc` makes a directory under a specific root directory (by default ~/repos) using the remote repository URL’s host and path.
## Installation
```shell
$ cargo install rrc
```
## Usage
`rrc` command is almost compatible with [ghq][1].
```
rrc
A manage remote repository clones
USAGE:
rrc [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-c, --config Set config file
SUBCOMMANDS:
each Execute command for each local repositories
get Clone remote repository
help Prints this message or the help of the given subcommand(s)
list List local repositories
look Look local repository
remove Remove local repositories
update Update local repositories
```
For how to use this tool, [ghq-handbook][2] will be helpful.
## Config
`rrc` provides a simple toml-style configuration file.
The configuration file can set profile name in the section. You can then select a profile with command line options. And you can also set host filters. If you set a host filter, it will be enabled across profiles.
```toml
# default profile
[default]
# customize repo root path
root = "~/repos"
# personal profile
[personal]
# customize repo root path
root = "~/personal_repos"
# hosts filter. gitlab repository cloned '~/personal_repos'
hosts = ["gitlab.com"]
```
[1]: https://github.com/motemen/ghq
[2]: https://github.com/Songmu/ghq-handbook