kilork.github.io

git-site-clone

Clone any repository into your own tidy source tree.

A repository URL cloned into ~/src/github.com/user/repo

If you keep code in ~/src/host/owner/repo, cloning by hand is a small ritual every time: mkdir the directories, clone, hope you spelled the owner right. This does it in one command.

What changes for you

Getting it

cargo install git-site-clone
git-site-clone config base ~/src
git-site-clone https://github.com/user/repo.git      # -> ~/src/github.com/user/repo
git-site-clone config mappings add github.com /Volumes/work/github.com
git-site-clone config show

Where to look

source · crate