| Crates.io | degit-rs |
| lib.rs | degit-rs |
| version | 0.2.3 |
| created_at | 2025-11-03 17:06:50.72024+00 |
| updated_at | 2025-11-04 15:18:52.643982+00 |
| description | Rust rewrite of degit |
| homepage | |
| repository | https://github.com/zachfedor/degit-rs |
| max_upload_size | |
| id | 1914989 |
| size | 64,511 |
Forked from psnszsn/degit-rs with additional features to support:
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.
cargo install degit-rs
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