在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
相关产品推荐
相关产品推荐

