使用RStudio的Git工具时出错

使用RStudio的Git工具时出错

本文介绍了使用RStudio的Git工具时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试从RStudio推送到GitHub时,出现以下错误。

 错误:无法从'rpostback-askpass'阅读askpass响应
致命:无法读取'https ://github.com':
没有这样的设备或地址

RStudio有我的起源作为

  https://github.com/rmscriven/other.git 

实际应该是

  https:// github.com/rmscriven/saber.git 

RStudio不允许我更改版本的来源控制系统。这是它显示:





是否可以从RStudio更改我的GitHub源URL?

感谢@krlmlr在评论中提供的专业提示,

我点击GitHub上的克隆网址 , 没有。然后再一次,没有。再次,为了好的措施,没有什么。所以我去了终端,阅读 man git 帮助文件,并决定更改密码并重新配置。这些是我运行的行,并且它是成功的。

  git config --global user.name< myuser.name> 
git config --global user.email< myuser.email>
git clone https://github.com/rmscriven/saber.git
git pull

然后我去了RStudio,它允许我克隆我的存储库,并更改我的版本控制设置的URL。这是一个丰富多彩的图片

I clicked "clone url" on GitHub once, nothing. Then again, nothing. And once again for good measure, nothing. So I went to the terminal, read the man git help file, and decided to change my password and reconfigure. These are the lines I ran, and it was successful.

git config --global user.name <myuser.name>
git config --global user.email <myuser.email>
git clone https://github.com/rmscriven/saber.git
git pull

Then I went to RStudio and it allowed me to clone my repository, and change the URL of my version control setting. Here's a colorful pic

Next, magic happened, and I had a copy of my package which I very carefully removed to prepare to push the development tarball to GitHub. Rock on.

@krlmlr, I thank you for nudging me in the right direction. Now I feel like I'm actually doing it the right way. :)

And for fun, try saying 'rpostback-askpass' ten times fast.

这篇关于使用RStudio的Git工具时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 10:50