https://github.com/eagletmt/clg
Manage remote Git repository clones
https://github.com/eagletmt/clg
Last synced: 20 days ago
JSON representation
Manage remote Git repository clones
- Host: GitHub
- URL: https://github.com/eagletmt/clg
- Owner: eagletmt
- License: mit
- Created: 2017-09-17T09:39:59.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-08-29T20:55:14.000Z (11 months ago)
- Last Synced: 2025-10-12T23:56:16.650Z (9 months ago)
- Language: Rust
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clg
Manage remote Git repository clones
## Usage
```
% clg clone eagletmt/clg
Cloning into '/home/eagletmt/.ghq/github.com/eagletmt/clg'...
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
% clg look clg
chdir /home/eagletmt/.ghq/github.com/eagletmt/clg
% git remote -v
origin https://github.com/eagletmt/clg (fetch)
origin https://github.com/eagletmt/clg (push)
% exit
% clg look eagletmt/clg
chdir /home/eagletmt/.ghq/github.com/eagletmt/clg
% exit
% clg list | grep cl
github.com/eagletmt/clg
% clg root
/home/eagletmt/.ghq
```
### Clone
You can also use scp-like syntax.
```
% clg clone git@github.com:eagletmt/clg
Cloning into '/home/eagletmt/.ghq/github.com/eagletmt/clg'...
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (4/4), done.
% clg look clg
chdir /home/eagletmt/.ghq/github.com/eagletmt/clg
% git remote -v
origin ssh://git@github.com/eagletmt/clg (fetch)
origin ssh://git@github.com/eagletmt/clg (push)
```
Clone repository with different name.
```
% clg clone eagletmt/clg -n clg2
Cloning into '/home/eagletmt/.ghq/github.com/eagletmt/clg2'...
remote: Counting objects: 57, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 57 (delta 22), reused 53 (delta 22), pack-reused 0
Unpacking objects: 100% (57/57), done
% clg look clg2
chdir /home/eagletmt/.ghq/github.com/eagletmt/clg2
% git remote -v
origin https://github.com/eagletmt/clg (fetch)
origin https://github.com/eagletmt/clg (push)
```
## Configuration
Write configuration to ~/.clg.toml.
```toml
# Compatible directory structure with ghq
root = "/home/eagletmt/.ghq"
```
## Acknowledgments
This software is based on [ghq](https://github.com/motemen/ghq) written by motemen.