Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 922
git clone
suntsu42 edited this page Feb 28, 2024
·
5 revisions
$ git clone https://github.com/libgit2/libgit2sharp.git
Repository.Clone("https://github.com/libgit2/libgit2sharp.git","path/to/repo");To provide a username and password, pass in CloneOptions.
varco=newCloneOptions();co.FetchOptions.CredentialsProvider=(_url,_user,_cred)=>newUsernamePasswordCredentials{Username="Username",Password="Password"};Repository.Clone("https://github.com/libgit2/libgit2sharp.git","path/to/repo",co);