如何克隆并放置到特定位置?
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'...
当我运行任务时,它会将文件复制到 undefined 文件夹中。显然,我做错了什么。谁能给我指出来吗?
最佳答案
感谢 S.Lacey(gulp-git 的发布者之一)对我的问题的及时回复。以下是正确的格式。
git.clone("https://git-location",{cwd: "./apps/"});
关于git - Gulp-git clone 在特定的文件夹位置。克隆到 'undefined' 文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24515066/