Git 问题:Author identity unknown*** Please tell me who you are.

  • 在 Git 提交时,出现如下错误信息
shell 复制代码
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 'Administrator@LENOVO.(none)')
问题原因
  • 这个错误信息表示需要配置用户名和邮箱,每次提交都会记录这些信息
处理策略
  1. 配置全局用户名和邮箱
shell 复制代码
git config --global user.name 【用户名】"
git config --global user.email 【邮箱】
  1. 配置完成后,使用如下指令,查看所有配置
shell 复制代码
git config --list
相关推荐
IMPYLH36 分钟前
Linux 的 false 命令
linux·运维·服务器·bash
小江的记录本1 小时前
【Linux】《Linux常用命令汇总表》
linux·运维·服务器·前端·windows·后端·macos
一匹电信狗1 小时前
【Linux我做主】进程程序替换和exec函数族
linux·运维·服务器·c++·ubuntu·小程序·开源
龘龍龙1 小时前
大模型学习(三)-RAG、LangChain
学习·langchain
无人机9011 小时前
Delphi 网络编程实战:TIdTCPClient 与 TIdTCPServer 类深度解析
java·开发语言·前端
TeDi TIVE1 小时前
Spring Cloud Gateway
java
RisunJan2 小时前
Linux命令-mysqlimport(为MySQL服务器用命令行方式导入数据)
linux·服务器·mysql
计算机安禾2 小时前
【数据结构与算法】第22篇:线索二叉树(Threaded Binary Tree)
c语言·开发语言·数据结构·学习·算法·链表·visual studio code
:mnong2 小时前
Superpowers 项目设计分析
java·c语言·c++·python·c#·php·skills
Saniffer_SH2 小时前
【每日一题】一台可编程的PCIe 6.0主机 + 一套自动化CTS验证平台 + 一个轻量级链路分析系统
运维·服务器·测试工具·fpga开发·自动化·计算机外设·硬件架构