We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to clone a private repository. But I have 2 phase authorization in place. In Octokit I have been using tokens with no issues.
Is there a way to use tokens with libgit2sharp?
thanks
The text was updated successfully, but these errors were encountered:
Paraphrasing this stackoverflow question:
var co = new CloneOptions(); co.CredentialsProvider = (_url, _user, _cred) => new UsernamePasswordCredentials { Username = "the-access-token", // YOUR TOKEN HERE Password = string.Empty }; Repository.Clone("https://github.com/libgit2/libgit2sharp.git", "path/to/repo", co);
Note: this is specific to GitHub
Sorry, something went wrong.
No branches or pull requests
I'm trying to clone a private repository. But I have 2 phase authorization in place. In Octokit I have been using tokens with no issues.
Is there a way to use tokens with libgit2sharp?
thanks
The text was updated successfully, but these errors were encountered: