rstudio推送"rpostback-askpass"错误 [英] rstudio push 'rpostback-askpass' error

查看:97
本文介绍了rstudio推送"rpostback-askpass"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从CLI中,我可以推/拉到git.但是,从Rsudio,我只能拉而不能推.我已经为ssh/https端口打开了防火墙 但是在尝试推送时仍然出现以下错误:

From CLI, I can push/pull to git. However, from Rsudio, I'm only able to pull but not to push. I have opened my firewall for ssh/https ports but I'm still getting the following error when trying to push:

error: unable to read askpass response from 'rpostback-askpass'
fatal: could not read Username for 'https://github.com': No such device or address

Rstudio 0.99.484版.

Rstudio Version 0.99.484.

推荐答案

问题出在RStudio中最新的https身份验证中. (如这篇文章中所述)

The problem is in the latest https authentication in RStudio. (As explained in this post)

解决方案是通过在项目中编辑存储库的配置,将存储库URL从https切换到ssh:.git/config

The solution is to switch the repository URL from https to ssh by editing the repository's config in your project: .git/config

然后,不要忘记在github上设置公共密钥(您的配置文件->设置-> SSH密钥,如

Then, don't forget to setup public keys on github (Your Profile->Settings->SSH Keys as explained here)

这篇关于rstudio推送"rpostback-askpass"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆