rich-harris/degit

Straightforward project scaffolding

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 35 minutes ago
Added to GitGenius on September 8th, 2026
Created on July 31st, 2017
Open Issues & Pull Requests: 8 (+0)
GitHub issues: Enabled
Number of forks: 281
Total Stargazers: 7,933 (+0)
Total Subscribers: 33 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

degit is a project scaffolding tool that makes copies of git repositories by downloading tar snapshots instead of cloning full git history.

The tool solves the problem of slow repository cloning when you only need the latest code without version control history. It works by resolving git references through an internal backend, downloading tar archives by default, and falling back to SSH cloning if tarball operations fail. Public HTTPS sources do not require a local git binary, though SSH and private repositories still do. The downloaded archives are cached locally for offline reuse, and the tool supports filtering specific files, targeting particular branches or tags, and working with subdirectories.

degit suits developers who want to quickly scaffold projects from templates without the overhead of a full git repository. It is particularly useful for template repositories where the git history is irrelevant. The tool offers a simpler command syntax than git clone, removes the leftover .git folder that shallow clones leave behind, and provides composable post-clone actions through degit.json configuration files. It also includes built-in support for aliases, allowing teams to create shortcuts for frequently used templates. The README mentions alternative tools in the ecosystem but does not make direct comparisons between them.

The project maintains comprehensive documentation covering usage, contribution guidelines, security policies, and architecture. Development is organized with clear separation between CLI functionality, the ESM API, and configuration-driven actions. The tool includes an agent skill for integration with systems that support SKILL.md files, enabling automated repository downloads with validation for private repositories and destination safety checks.