在R中使用git2r :: clone进行SSH身份验证时,获取“不受支持的URL协议" [英] Getting `unsupported URL protocol` when using SSH authentication with git2r::clone in R
本文介绍了在R中使用git2r :: clone进行SSH身份验证时,获取“不受支持的URL协议"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试通过R在中通过SSH (不是HTTPS协议)通过git2r :: clone克隆私有仓库.
I'm trying to clone a private repo with git2r::clone via SSH (not HTTPS protocol) in R by doing
git2r::clone("git@git.server.com:team_name/repo_name.git", "~/dev/")
但是,我不断得到
Error in 'git2r_clone': unsupported URL protocol
有什么问题吗?
我已通过SSH通过回购进行身份验证,并可以在命令行中使用与git clone url
相同的URL进行克隆.我想避免使用https并将我的凭据输入URL.
I am authenticated to the repo via SSH and can clone using the same URL in the command line with git clone url
. I would like to avoid using https and entering my credentials into the URL.
查看全文