Git plugin that provides a shortcut to clone repos from github using SSH urls. In the future I plan on refactoring the interface to make things not github specific.
BEFORE:
$ git clone git@github.com:joshburnsxyz/git-shclone
AFTER:
$ git shclone joshburnsxyz/git-shclone
git-shclone 0.1.1
USAGE:
git-shclone [OPTIONS] [--] [ARGS]
ARGS:
<REPO> The github repo i.e username/repo
OPTIONS:
-h, --help Print help information
-H, --host [<HOST>...] One of: github, gitlab [default: github]
-V, --version Print version information
Linux package managers, Homebrew, etc. coming soon
Requires working Rust toolchain and Cargo installation
- Clone repo
git clone git@github.com:joshburnsxyz/git-shclone
cd git-shclone
- Build the release binary with
cargo
cargo build --release
- Move the binary into your
$PATH
mv target/release/git-shclone /usr/bin/git-shclone
- Test the
--help
message works.
git shclone --help
- If supplied with a HTTP(S) URL, transform it into the SSH version
- Refactor to make things not Github specific
- Implement toolchain / scripts to build for all 3 major platforms to provide release binaries
- Packaging for (major desktop) Linux distros, Homebrew, etc.
- Use a
Makefile
to automate build steps and installation - Use
.gitconfig
files to assume default host choice, etc.