1、提交时报错
- (1)问题
]# git commit -m "Initial contents of public_html" --author="heng ha <[email protected]>" Committer identity unknown *** Please tell me who you are. Run git config --global user.email "[email protected]" 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 'root@centos71.(none)')
- (2)解决问题
//修改项目目录中的配置文件.git/config,添加如下信息。你自己的邮箱,你自己的姓名 ]# vim .git/config [user] [email protected] name=heng ha
1
# #标签:git,--,global,问题,Git,user,config,email From: https://www.cnblogs.com/maiblogs/p/17211051.html