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

在R Studio中执行Git提交时遇‘Author identity unknown’错误求助

解决R Studio中Git提交时的"Author identity unknown"错误

你遇到的报错信息如下:

>>> git commit -F C:/Users/DELL/AppData/Local/Temp/RtmpARw5ml/git-commit-message-cb424997c45.txt
Author identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'DELL@SIMPLY-COMPLEX403.(none)')

Git要求必须配置用户名和邮箱来标记提交作者,按以下方式配置即可解决:

方式1:全局配置(所有本地Git仓库通用)

在R Studio的终端中执行以下命令,替换为你自己的邮箱和用户名:

git config --global user.email "your-email@example.com"
git config --global user.name "Your Name"

方式2:仅当前仓库配置

如果只想让当前项目使用特定身份信息,去掉--global参数执行:

git config user.email "your-email@example.com"
git config user.name "Your Name"

配置完成后,重新执行提交操作即可成功完成,之后就能继续推送代码。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.20 10:32:13