Discuss / Git / 用命令git commit告诉Git,把文件提交到仓库后显示以下代码

用命令git commit告诉Git,把文件提交到仓库后显示以下代码

Topic source

希木衫

#1 Created at ... [Delete] [Delete and Lock User]

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 (got

'zhaoshuaiqi01@zhaoshuaiqi01.(none)')

前面没有教学如何设置我是谁

你有有心的话自己网上百度一下就出来了,就是设置一下用户名和邮箱

git config --global user.email "you@example.com"

这个是设置邮箱的

git config --global user.name "Your Name"

这个是设置用户名的

2SevenK

#3 Created at ... [Delete] [Delete and Lock User]

用户名和邮箱设置完之后就行了吗


  • 1

Reply