我该如何克隆并放置在特定的位置?
var git = require('gulp-git');
// Clone a remote repo
gulp.task('clone', function(){
git.clone('https://git-location', './apps/');
});我一直在看文档,但找不到任何文档。
以下是运行任务后的输出
[11:17:05] Starting 'clone'...
[11:17:05] Finished 'clone' after 5.76 ms
[11:17:48] Cloning into 'undefined'...当我运行该任务时,它正在将文件复制到未定义的文件夹中。很明显,我做错了什么。有人能指给我看吗?
发布于 2014-07-01 18:41:57
感谢S.Lacey (git的出版商之一)对我的问题做出了迅速的回答。下面是正确的格式。
git.clone("https://git-location",{cwd: "./apps/"});https://stackoverflow.com/questions/24515066
复制相似问题