https://github.com/shadawck/gitcurl
Clone a git repository without the need of git to be installed on your system.
https://github.com/shadawck/gitcurl
cli clone curl git rust utility
Last synced: about 19 hours ago
JSON representation
Clone a git repository without the need of git to be installed on your system.
- Host: GitHub
- URL: https://github.com/shadawck/gitcurl
- Owner: shadawck
- Created: 2022-09-19T15:16:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T19:26:43.000Z (over 2 years ago)
- Last Synced: 2025-02-28T13:15:38.681Z (4 months ago)
- Topics: cli, clone, curl, git, rust, utility
- Language: Rust
- Homepage: https://crates.io/crates/gitcurl
- Size: 74.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Gitcurl
[](https://crates.io/crates/gitcurl) [](https://github.com/shadawck/gitcurl/actions/workflows/build.yaml)
Clone a git repository without the need of git to be installed on your system.
## Installation
### Cargo
```bash
cargo install gitcurl
```### Pre-compiled binaries
For each release, pre-compiled version are available :
| 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:
```bash
gitcurl https://github.com/shadawck/gitcurl
# or
gitcurl github:shadawck:gitcurl
```- Or on Gitlab:
```bash
gitcurl https://gitlab.com/tezos/tezos
# or
gitcurl gitlab:tezos:tezos
```- Or on premise Gitlab:
```bash
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.
```bash
gitcurl https://github.com/shadawck/gitcurl -b main
```---
Fetch a zip of the repository.
```bash
gitcurl -z https://github.com/shadawck/gitcurl
```---
Output to a specific path.
```bash
gitcurl https://github.com/shadawck/gitcurl -z -o /my/clone/path/myzip.zip
gitcurl https://github.com/shadawck/gitcurl -o /my/clone/path
```---
## Options
```bash
$ gitcurl --help
Clone git repository with curlUSAGE:
gitcurl [OPTIONS]ARGS:
Github link or just :OPTIONS:
-b, --branch Clone a specific branch of git repositiry
-h, --help Print help information
-o, --output 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$
```