Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eagletmt/clg
Manage remote Git repository clones
https://github.com/eagletmt/clg
Last synced: 22 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-04T19:11:03.000Z (9 months ago)
- Last Synced: 2024-12-01T07:40:59.000Z (25 days ago)
- Language: Rust
- Size: 85 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
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 [email protected]: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://[email protected]/eagletmt/clg (fetch)
origin ssh://[email protected]/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.