git-download:将远程git存储库下载为tar文件或分解目录

时间:2021-05-10 00:29:42
【文件属性】:
文件名称:git-download:将远程git存储库下载为tar文件或分解目录
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-10 00:29:42
JavaScript git下载 将远程git存储库下载到目录或tar文件中。 提供一个围绕git archive命令的包装器,从节点执行如下命令: git archive --format=tar --remote=ssh://hostname/user/reponame.git branch:folder | tar xf - 注意: Github不支持git archive ,因此该软件包不适用于Github仓库。 该软件包可用于从私人git服务器以及Atlassian Stash和Bitbucket下载git存储库。 将来可能会增加使用其他下载方法添加github支持的功能。 安装 npm install git-download --save 用法 var options = { // Remote source location (no github sources) source: 's
【文件预览】:
git-download-master
----test.js(989B)
----LICENSE(1KB)
----README.md(2KB)
----.gitignore(535B)
----index.js(2KB)
----package.json(679B)

网友评论