You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Linux服务器RStudio环境下Git配置PAT认证失败 报get-urlmatch未知选项错误

问题背景
  • 持有单位Linux服务器的访问权限,可在该服务器上通过RStudio开展代码开发工作
  • 异常现象:RStudio Git面板的拉取(Pull)/推送(Push)按钮处于置灰状态
  • 当前状态:仍在使用GitHub即将弃用的基础密码认证,暂未完成PAT认证的正常配置,对应仓库与GitHub的关联疑似出现异常
  • 初步排查记录:
    • 终端执行git remote -v命令,可查询到正确的仓库地址与分支信息
    • R环境中执行gitcreds::gitcreds_set()命令,界面显示匹配的GitHub用户名正确,系统中当前已保存旧的密码类凭证
报错完整复现流程

按凭证配置工具的提示选择替换存量凭证后,输入新PAT时触发系统报错,完整交互过程如下:

-> What would you like to do?

1: Keep these credentials
2: Replace these credentials
3: See the password / token

Selection: 2

-> Removing current credentials...

? Enter new password or token: XXXXXX

Error in new_git_error("git_error", args = args, stdout = out, status = attr(out, :
System git failed: error: unknown option `get-urlmatch'
usage: git config [options]

已完成的排查动作与当前诉求
  • 通过公开渠道检索上述报错的对应解决方案,未找到有效参考信息
  • 初步判断:修复Git连接的异常问题后,RStudio内置Git面板上置灰的拉取、推送功能可同步恢复正常
  • 当前诉求:恳请提供对应问题的解决思路

内容的提问来源于stack exchange,提问作者Alexa Fredston

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.23 00:45:05