I just started using simple-git
and I have a question: is it possible to clone all the files from one folder on a repository instead of the whole thing? My code is this:
const simplegit = require('simple-git')
const git = simplegit()
const repo = 'https://github.com/PrinceKomali/bot-index/';
const path = './test';
const options = [];
const handler = () => {
console.log('DONE')
};
git.clone(repo, path, options, handler());
Running this clones the entire repository but I only need the contents of the pages
folder. How can I do this