An open API service indexing awesome lists of open source software.

https://github.com/kijimad/gclone

Literate git clone
https://github.com/kijimad/gclone

cli git-clone

Last synced: 20 days ago
JSON representation

Literate git clone

Awesome Lists containing this project

README

          

[![⚗️Check](https://github.com/kijimaD/gclone/actions/workflows/check.yml/badge.svg)](https://github.com/kijimaD/gclone/actions/workflows/check.yml)

# gclone

gclone is literate `git clone` cli tool.

```
$ gclone
────────────────────────
Save dir: /root/Project1
Repo count: 2
────────────────────────
⢿✔ git@github.com:fatih/color.git
⡿✔ git@github.com:joho/godotenv.git

────────────────────────
Save dir: /root/Project2
Repo count: 2
────────────────────────
⡿✔ git@github.com:kijimaD/my_go.git
⣻✔ git@github.com:kijimaD/gin_hello.git

done!
Success: 4
Fail: 0
Process: 8760ms
```

# Install

```sh
$ go install github.com/kijimaD/gclone@main
```

# How to use

`gclone.yml` example

```yaml
groups:
- dest: '~/Project/test0'
repos:
- git@github.com:kijimaD/my_go.git
- git@github.com:kijimaD/gin_hello.git
- dest: '~/Project/test1'
repos:
- git@github.com:fatih/color.git
- git@github.com:joho/godotenv.git
```

and run!(gclone.yml exist on current directory )
```shell
$ gclone
```

# Options

-f: config file path
```shell
$ gclone -f dir/gclone.yml
```

# Docker

This command is for testing, not save result your disk. If you want to save disk, mount save directory.
```shell
docker run --rm \
-it \
-v "${PWD}":/workdir \
-v "${HOME}/.ssh":/root/.ssh \
ghcr.io/kijimad/gclone:latest
```