degit-rs

Crates.iodegit-rs
lib.rsdegit-rs
version0.2.3
created_at2025-11-03 17:06:50.72024+00
updated_at2025-11-04 15:18:52.643982+00
descriptionRust rewrite of degit
homepage
repositoryhttps://github.com/zachfedor/degit-rs
max_upload_size
id1914989
size64,511
Zach Fedor (zachfedor)

documentation

README

degit-rs

Forked from psnszsn/degit-rs with additional features to support:

  • Tags
  • Branches
  • Commits

degit-rs is a rust rewrite of degit. It downloads copies of git repositories from the internet, without the need for git clone. This is faster, since it does not download the .git folder (which contains all the git history) and allows you to initialize a new repository afterwards. It is useful for downloading project boilerplate templates.

Crates.io

Installation

cargo install degit-rs

Usage examples

Simplest usage downloads the main branch on GitHub to the current working directory, or to a target directory if you provide it.

degit-rs user/repo
degit-rs user/repo path/to/project

You can also download from GitLab and Bitbucket using gitlab:user/repo and bitbucket:user/repo, respectively. Or you can specify something other than the main branch with:

degit-rs user/repo#dev         # by branch
degit-rs user/repo#v1.2.3      # by tag
degit-rs user/repo#1234abcd    # by commit hash

Advantages over original degit

  • does not require nodejs
  • does not create files in your home directory
  • supports hosted gitlab instances
  • progress bar
Commit count: 0

cargo fmt