| Crates.io | mkrepo |
| lib.rs | mkrepo |
| version | 0.1.3 |
| created_at | 2019-10-24 20:33:59.413213+00 |
| updated_at | 2019-11-04 09:45:52.20505+00 |
| description | Create repository directory for ghq style |
| homepage | https://github.com/himanoa/mkrepo |
| repository | https://github.com/himanoa/mkrepo |
| max_upload_size | |
| id | 175349 |
| size | 56,768 |
Create directory and git init and initial commit in imitation of ghq's management directory structure.
cargo install mkrepo
mkrepo requires following .gitconfig values.
ghq.rootmkrepo.servicemkrepo.username or user.nameAdd these values to your ~/.gitconfig.
[user]
name="himanoa"
[ghq]
root="~/src"
[mkrepo]
service="github.com"
username="himanoa"
$ mkrepo sample-repository
$ ls -al ~/src/github.com/himanoa/sample-repository
./ ../ .git/
$ mkrepo -a himanoa-sandbox sample-repository
$ ls -al ~/src/github.com/himanoa-sandbox/sample-repository
./ ../ .git/
$ mkrepo -s example.com sample-repository
$ ls -al ~/src/example.com/himanoa/sample-repository
./ ../ .git/
$ mkrepo -m "Custom initial commit message" sample-repository
$ cd ~/src/github.com/himanoa/sample-repository
$ git show
commit 838a05bebd96e04a21d539946c92f78f9eb233d0 (HEAD -> master)
Author: himanoa <matsunoappy@gmail.com>
Date: Fri Oct 25 05:20:10 2019 +0900
Custom initial commit message
MIT