When I use libgit2sharp in project to clone repository with ssh-transport protocol, like
git@github.com:libgit2/libgit2sharp.git
It throw an exception, says "This transport isn't implemented. Sorry"
How can I clone repository with ssh-transport-protocol by using libgit2sharp ?
Unfortunately, Ssh protocol is not supported yet. At this time only
git://
(read-only) andhttp[s]://
protocols are.However, it will eventually be, by leveraging the libssh2 library.
Subscribing to issue #255 notifications will keep you updated about the progress made regarding this feature.
Update:
There's a work in progress in libgit2 (see PR #2428) that should help us make LibGit2Sharp able to cope with the ssh protocol sooner rather than later.
Update 2:
PR #852 is working on making ssh available to LibGit2Sharp
Unfortunately, LibGit2Sharp does not include necessary crypto libraries out of box (https://github.com/libgit2/libgit2sharp/issues/255#issuecomment-212580185).
Use LibGit2Sharp-SSH NuGet package (fork).