Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using simple-git for code distribution #403

Open
scripting opened this issue Oct 18, 2019 · 0 comments

Comments

@scripting
Copy link

@scripting scripting commented Oct 18, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.