微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

原文:https://www.cnblogs.com/izengbin/p/7122727.html   vi 编辑 vim 编辑 a 进入编辑模式 esc 退出编辑模式 shift+:    (看见: ) 代表开始执行下一行命名 w->q 保存退出 q->! 不保存退出 cat->空格->文件名 查看文件      * 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

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐