按文档配置后一直报错:
'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]
🎨 原创不易,支持请点赞、转载请注明本文作者为子成君