Usage:
degit <src>[#ref] [<dest>] [options]
Fetches the src
repo, and extracts it to dest
(or the current directory).
The src
argument can be any of the following:
user/repo github:user/repo https://github.com/user/repo
gitlab:user/repo https://gitlab.com/user/repo
bitbucket:user/repo https://bitbucket.com/user/repo
git.sr.ht/user/repo [email protected]:user/repo https://git.sr.ht/user/repo
You can append a #ref to any of the above:
user/repo#dev
user/repo#v1.2.3
user/repo#abcd1234
The dest
directory (or the current directory, if unspecified) must be empty
unless the --force
option is used.
Options:
--help
, -h
Show this message
--cache
, -c
Only use local cache
--force
, -f
Allow non-empty destination directory
--verbose
, -v
Extra logging
--mode=
, -m=
Force the mode by which degit clones the repo
Valid options are tar
or git
(uses SSH)
See https://github.com/Rich-Harris/degit for more information