Git commit时提示错误时 解决办法
2024-10-21 18:31:46
问题描述:
* 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
最新文章
- Codeforces 567C Geometric Progression(思路)
- 使用过滤器解决SQL注入和跨站点脚本编制
- ABAP中正则表达式的简单使用方法 (转老白BLOG)
- eclipse svn异常:RA layer request failed 的解决方案
- AppCan移动平台开发常见问题解答
- phantomjs
- Linux下的正则表达式(基础)
- spring注解支持
- Ubuntu16.04安装搜狗输入法后有黑边问题的解决方法
- mysql面试题
- 一个简单的windows勒索软件分析
- 二十三、Interpreter 解释器模式
- HDU 1166 敌兵布阵(线段树/树状数组模板题)
- vue2中使用mint-ui,性别选择
- mybatis的批量更新实例
- 2.1博客系统 |基于form组件和Ajax实现注册登录
- Hibernate.基础篇《一》.Hibernate工具类.
- [datatable]关于在DataTable中执行DataTable.Select(";条件";)返回DataTable的解决方法
- 【js】插件—动效Velocity.js
- BBED标记坏块以及修复坏块