gitcurl

Crates.iogitcurl
lib.rsgitcurl
version0.2.1
sourcesrc
created_at2022-09-19 15:28:46.963738
updated_at2022-11-30 19:35:19.273921
descriptionClone a directory without using Git but using Curl
homepagehttps://github.com/shadawck/gitcurl
repositoryhttps://github.com/shadawck/gitcurl
max_upload_size
id669217
size47,281
Shadawck (shadawck)

documentation

README

Gitcurl

crates.io Build

Clone a git repository without the need of git to be installed on your system.

Installation

Cargo

cargo install gitcurl

Pre-compiled binaries

For each release, pre-compiled version are available : https://github.com/shadawck/gitcurl/releases/latest/

OS Arch
linux x86_64
linux armv7
linux arm64
macos x86_64
macos arm64
windows (msvc) x86_64
windows (msvc) i686

How to use gitcurl

Clone a git repository in the current folder:

  • On github:

    gitcurl https://github.com/shadawck/gitcurl
    # or 
    gitcurl github:shadawck:gitcurl
    
  • Or on Gitlab:

    gitcurl https://gitlab.com/tezos/tezos
    # or 
    gitcurl gitlab:tezos:tezos
    
  • Or on premise Gitlab:

    gitcurl https://gitlab.kitware.com/utils/rust-gitlab
    # or 
    gitcurl gitlab.kitware.com:utils:rust-gitlab
    

Clone a specific branch of a git repository in the current folder.

gitcurl https://github.com/shadawck/gitcurl -b main

Fetch a zip of the repository.

gitcurl -z https://github.com/shadawck/gitcurl

Output to a specific path.

gitcurl https://github.com/shadawck/gitcurl -z -o /my/clone/path/myzip.zip
gitcurl https://github.com/shadawck/gitcurl -o /my/clone/path

Options

$ gitcurl --help
Clone git repository with curl

USAGE:
    gitcurl [OPTIONS] <URL>

ARGS:
    <URL>    Github link or just <user_name_name>:<repo_name>

OPTIONS:
    -b, --branch <branch>    Clone a specific branch of git repositiry
    -h, --help               Print help information
    -o, --output <PATH>      Path to save or decompress the zip archive
    -V, --version            Print version information
    -z, --only-zip           Only fetch the zipfile of the git repository without decompressing
shadawck@shadow:/opt/Projet/gitcurl$ 
Commit count: 85

cargo fmt