有时候,我们会在Github提交代码的时候出现了下面这个问题:
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.
...
那这时候,我们该怎么解决这个问题呢?顾名思义,就是你告诉它你的邮箱和你的用户名
那我们打开终端,喏,就是这个
,在里面输入命令行:
git config --global user.email "你的邮箱"
git config --global user.name "你GitHub的用户名"
然后回车键就可以啦!!
是不是很简单 ^_^
欢迎大家访问我的GitHub
GitTub:https://github.com/JnKindle

本文介绍了解决在使用Git过程中遇到的关于用户邮箱和用户名未设置的问题。通过简单的命令行操作即可完成配置。
1万+

被折叠的 条评论
为什么被折叠?



