Git commit时提示错误时 解决办法

问题描述:
* 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
解决办法: 
打开终端,进入自己的项目下,有个.git目录 
cd ~/MyPro/.git 
vi config
[core]
      repositoryformatversion = 0
           filemode = true
           bare = false
           logallrefupdates = true
           ignorecase = true
 #添加以下三行:
[user]
     email = yourname@me.com
     name = yourname
posted @   `奔跑的蜗牛  阅读(148)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
点击右上角即可分享
微信分享提示