git-site-clone
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
- One command per repository.
git-site-clone https://github.com/user/repoends up in<base>/github.com/user/repo. - Configure it once. A base directory and per-host mappings, so GitHub can live on one disk and your company's GitLab on another.
- The clipboard counts as input. Copy a URL, run
git-site-clone, done. - It tells you where it went (and can stay put instead of changing directory, for scripts).
Getting it
cargo install git-site-clonegit-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