Using degit to clone a repository

All Posts

Using degit to clone a repository

Updated: August 25, 2020 by Tony Alves

How to use degit to clone a repository or path from GitHub to scaffold a project.

Bring in a folder

$ npx degit github:user/repo[/subdirectory] <path>

Bring in a branch

$ npx degit github:user/repo#branch <path>
© Tony Alves