使用download-git-repo克隆 报 ‘git clone’ failed with status 128

子成君 1.1K 0

按文档配置后一直报错:

'git clone' failed with status 128

查到了这个issue: https:///wuqiong7/Note/issues/17

官方给出的各种配置方法,其中这个最好使不报错:

<host>:<userName>/<repo> <projectName> #branchName

例子:

const download = require('download-git-repo')

download('github.com:userName/cli-template#master', tempFileName, {clone: true}, function (error) {
    ......
})

[aru_24]

发表评论 取消回复
OwO 图片 链接 代码

分享