rstudio推送"rpostback-askpass"错误 [英] rstudio push 'rpostback-askpass' error
问题描述
从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屋!