使用RStudio的Git工具时出错

Ric*_*ven 11 git r rstudio

当试图从RStudio推送到GitHub时,我收到以下错误.

error: unable to read askpass response from 'rpostback-askpass'
fatal: could not read Username for 'https://github.com':
       No such device or address
Run Code Online (Sandbox Code Playgroud)

RStudio的起源是

https://github.com/rmscriven/other.git
Run Code Online (Sandbox Code Playgroud)

什么时候它应该是

https://github.com/rmscriven/saber.git
Run Code Online (Sandbox Code Playgroud)

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

在此输入图像描述

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

Ric*_*ven 6

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

使用空目标目录.在GitHub项目页面上查找"克隆URL",也许选择SSH变体.

我在GitHub上点击了一次"clone url",没有.然后,没有.再一次,好的措施,没有.所以我去了终端,阅读了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
Run Code Online (Sandbox Code Playgroud)

然后我去了RStudio,它允许我克隆我的存储库,并更改我的版本控制设置的URL.这是一张彩色照片

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

在此输入图像描述

接下来,魔术发生了,我有一个我的包的副本,我非常小心地删除,准备将开发tarball推送到GitHub.摇滚.

@krlmlr,谢谢你让我朝着正确的方向努力.现在我觉得我实际上是以正确的方式做到了.:)

为了好玩,尝试'rpostback-askpass'快速说十次.