gclone is literate git clone
cli tool.
$ gclone
────────────────────────
Save dir: /root/Project1
Repo count: 2
────────────────────────
⢿✔ [email protected]:fatih/color.git
⡿✔ [email protected]:joho/godotenv.git
────────────────────────
Save dir: /root/Project2
Repo count: 2
────────────────────────
⡿✔ [email protected]:kijimaD/my_go.git
⣻✔ [email protected]:kijimaD/gin_hello.git
done!
Success: 4
Fail: 0
Process: 8760ms
$ go install github.com/kijimaD/gclone@main
gclone.yml
example
groups:
- dest: '~/Project/test0'
repos:
- [email protected]:kijimaD/my_go.git
- [email protected]:kijimaD/gin_hello.git
- dest: '~/Project/test1'
repos:
- [email protected]:fatih/color.git
- [email protected]:joho/godotenv.git
and run!(gclone.yml exist on current directory )
$ gclone
-f: config file path
$ gclone -f dir/gclone.yml
This command is for testing, not save result your disk. If you want to save disk, mount save directory.
docker run --rm \
-it \
-v "${PWD}":/workdir \
-v "${HOME}/.ssh":/root/.ssh \
ghcr.io/kijimad/gclone:latest