git-js
git-js copied to clipboard
Using simple-git for code distribution
I have a what I think should be a simple application for simple-git.
basically want to do a one-way sync from a sub-folder of a git repo to a local folder.
My git skills are not very great. I have a call to .clone that gets the whole repo. I want to download a copy of just one folder.
const urlRepo = "https://github.com/scripting/test2";
const localFolderPath = "myAppFolder/";
git.clone (urlRepo, localFolderPath, function (err) {
});
I'd like to do a clone of just part of a repo, basically.
Any help much appreciated.
Dave
PS: A full write-up is here with an example.