gitless

Crates.iogitless
lib.rsgitless
version1.0.0
sourcesrc
created_at2024-01-10 11:15:54.49257
updated_at2024-01-10 11:15:54.49257
descriptionClone and degit a repo
homepage
repositoryhttps://github.com/c12i/gitless
max_upload_size
id1095143
size19,386
Collins Muriuki (c12i)

documentation

README

gitless

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.

installation

As cli

cargo install gitless

As lib

cargo add `gitless`

cli usage

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

notes

  • If neither --branch nor --rev is provided, the tool will clone the default branch of the repository.
  • Ensure that the specified destination path is valid and accessible.
  • Use caution when using the `--rev`` option, as it will degit the repository at the specified commit, potentially resulting in a detached HEAD state.
  • Gitless is not affiliated with Git or any Git hosting service. Use at your own discretion.
Commit count: 0

cargo fmt