Skip to content
suntsu42 edited this page Feb 28, 2024 · 5 revisions

git-clone

Clone a repository into a new directory

$ git clone https://github.com/libgit2/libgit2sharp.git

LibGit2Sharp

Repository.Clone("https://github.com/libgit2/libgit2sharp.git", "path/to/repo");

To provide a username and password, pass in CloneOptions.

var co = new CloneOptions();
co.FetchOptions.CredentialsProvider = (_url, _user, _cred) => new UsernamePasswordCredentials { Username = "Username", Password = "Password" };
Repository.Clone("https://github.com/libgit2/libgit2sharp.git", "path/to/repo", co);
Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy