Global_clone is a simple CLI tool for cloning git repositories to templated paths.
This is a rust re-implementation of global-git-clone, originally written in typescript for NodeJS. I started this project manly as a way to learn and practice rust.
I would recommend this implementation over global-git-clone as it's a bit more stable.
If you use this project and come across any issues please open an issue on github.
$ global_clone clone [options] <repository> -t <template>
Latest release can be found on GitHub.
Currently I have only setup amd64 builds, but do plain to add arm64 builds soon.
- Debian or Ubuntu including WSL (amd64): Download and install using deb package.
curl -fsSL github.com/NatoNathan/global_clone/releases/latest/download/global_clone_linux_amd64.deb -O
sudo dpkg -i global_clone_linux_amd64.deb
- Fedora or CentOS including WSL (amd64): Download and install using rpm package.
curl -fsSL github.com/NatoNathan/global_clone/releases/latest/download/global_clone_linux_amd64.rpm -O
sudo rpm -i global_clone_linux_amd64.rpm
- linux (amd64) including WSL : Download and install using tar.gz package.
curl -fsSL github.com/NatoNathan/global_clone/releases/latest/download/global_clone_linux_amd64.tar.gz -O
tar -xzf global_clone_linux_amd64.tar.gz
sudo cp global_clone_linux_amd64/global_clone /usr/local/bin/global_clone # or wherever you want to install it Just make sure it on the PATH
- MacOS (amd64): Download and install using tar package.
Due to MacOS codesiging, you will not be able run the MacOS binary if you don't download though the terminal or compile it your self.
curl -fsSL github.com/NatoNathan/global_clone/releases/latest/download/global_clone_macos_amd64.tar.gz -O
tar -xvf global_clone_macos_amd64.tar.gz
sudo cp global_clone_macos_amd64/global_clone /usr/local/bin/global_clone
- Windows (amd64): Download here and move to the appropriate directory (e.g. C:\Program Files\global_clone) so it's on the PATH.
You will need the rust toolchain, I recommended you use rustup
rustup should ensure all build dependencies are installed.
- Clone the repository
- Run
cargo build
orcargo run
this will download and compile all dependencies before building the project.
MIT License (see License )