git - 将我的项目提交到 github 时发生了一些错误
问题描述
我是 github 的新手。我试图提交我的项目。但在我的 cmd 上发生了以下错误。
*** 请告诉我你是谁。
跑
git config --global user.email "you@example.com" git config --global user.name "你的名字"
设置您帐户的默认身份。省略 --global 以仅在此存储库中设置身份。
致命:无法自动检测电子邮件地址(得到 'Hema@Hema-PC.(none)')
如何解决这个问题?
解决方案
对于这个错误,你只需要执行他们显示的命令
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
这将在 ~/.gitconfig 中设置你的名字。
推荐阅读
- r - 根据符号将字符串拆分为多列
- dependency-injection - Eclipse 4 配置依赖注入的绑定
- observable - Ionic 4 observable 返回未定义
- regex - ^\d*(\:d+) 是什么意思?或 ^\d*(\:d+)?$
- dc.js - crossfilter dc.barChart 呈现没有条形的空图表
- json - Kubernetes Python 客户端从代理动词返回 pod 的 JSON HTTP 响应,作为带有单引号而不是双引号的字符串
- android - 将 apk 测试从 Fabric 迁移到 Firebase
- python - 在 SQLAlchemy 中创建多对多关系
- ios - Swift iOS - 参数标签 '(float3:)' 不匹配任何可用的重载
- pandas - 如何将 unix 纪元转换为高度准确的时间戳 [pandas]?