使用RStudio的Git工具时出错 [英] Errors when using RStudio's Git tools

查看:166
本文介绍了使用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项目页面寻找克隆URL,或许选择SSH变体。

我点击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。这是一个丰富多彩的图片


新项目 - >版本控制 - > Git - >创建项目






接下来,发生了魔法,我拿到了一份我非常小心的软件包,以便将开发tarball推送到GitHub。 Rock on。



@krlmlr,我感谢您推动我朝着正确的方向前进。现在我觉得我正在以正确的方式做到这一点。 :)



为了好玩,试着快速说出'rpostback-askpass'>十次。


When attempting to push to GitHub from RStudio, I get the following errors.

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

RStudio has my origin as

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

when it actually should be

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

RStudio will not allow me to change the origin from the version control system. Here is what it shows:

Is it possible to change my GitHub origin url from RStudio?

解决方案

Thanks to the pro tip provided by @krlmlr in the comments,

Use an empty target directory. Look for "clone URL" on your GitHub project page, perhaps choose the SSH variant.

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

New project -> Version Control -> Git -> Create Project

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工具时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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