@shriek/dit
v1.1.0
Published
Scaffolding for everyday need
Downloads
374
Readme
dit
dit similar idea to degit but for private repos too, using git-native clone
Usage
npx @shriek/dit <repository> <destination> [--ref <branch|tag|commit>]Examples
# default remote branch behavior (git-native)
dit https://github.com/org/template.git my-app
# shorthand GitHub repo (auto-expanded to [email protected]:org/template.git)
dit org/template my-app
# pin to tag
dit https://github.com/org/template.git my-app --ref v1.2.0
# pin to commit
dit [email protected]:org/template.git my-app --ref 3b8f4a2Not supported
- Submodule handling
- Git LFS-specific handling
- Custom auth flows
Development
Run tests:
pnpm testRun locally without publishing:
node main.mjs <repository> <destination> [--ref <branch|tag|commit>]