Degit 究竟代表什么?

What does Degit exactly stand for?

我已经彻底搜索了 Degit 的完整形式,但找不到任何地方。 它究竟代表什么?

请提供任何 link 以进一步了解 how/why 它的开发。

我不确定我是否理解你的问题,但我认为 Degit 的意思是 de-(前缀表示 撤消 ,如停用) 和-git(版本控制)。换句话说,下载一个使用git进行版本控制的项目,但没有git(基本上没有.git文件夹)。

最准确的描述可能来自 official git repository:

degit makes copies of git repositories. When you run degit some-user/some-repo, it will find the latest commit on https://github.com/some-user/some-repo and download the associated tar file to ~/.degit/some-user/some-repo/commithash.tar.gz if it doesn't already exist locally. (This is much quicker than using git clone, because you're not downloading the entire git history.)

此外,如果您仍然不明白 Degit 存在的原因,我建议您阅读 Wait, isn't this just git clone? 部分。

degit 的本意必须是 depth git。 它是一个执行与 git clone --depth 1 非常相似的任务的包,目的是它应该复制 git 个存储库。

您可以在 degit's documentation provided in npmjs site 中进一步阅读。