Crates.io | gitless |
lib.rs | gitless |
version | 1.0.0 |
source | src |
created_at | 2024-01-10 11:15:54.49257 |
updated_at | 2024-01-10 11:15:54.49257 |
description | Clone and degit a repo |
homepage | |
repository | https://github.com/c12i/gitless |
max_upload_size | |
id | 1095143 |
size | 19,386 |
Gitless is a command-line interface (CLI) tool that facilitates cloning and degitting from a Git repository. It simplifies the process of cloning a repository and removing its Git history, leaving only the latest state of the code.
As cli
cargo install gitless
As lib
cargo add `gitless`
Usage: gitless [OPTIONS] --url <URL> --dest <DEST_PATH>
Options:
-u, --url <URL> Git URL you would like to clone and degit from
--dest <DEST_PATH> Destination of cloned and degitted path
-b, --branch <BRANCH> Git branch or tag to clone and degit from
-r, --rev <REV> Git commit hash to clone and degit from
-h, --help Print help
--branch
nor --rev
is provided, the tool will clone the default branch of the repository.