Discuss / Git / 在上一步已经告诉它 user.name 和user.email 了(但是没什么提示,我用--list查看已经有我的信息了),为什么在提交文件的时候还是不行呢。烦请大佬解释下,感谢

在上一步已经告诉它 user.name 和user.email 了(但是没什么提示,我用--list查看已经有我的信息了),为什么在提交文件的时候还是不行呢。烦请大佬解释下,感谢

Topic source

钱霸霸QAQ

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

lx@SE2-PC MINGW64 /d/Git-Repository (master)

$ pwd

/d/Git-Repository

lx@SE2-PC MINGW64 /d/Git-Repository (master)

$ git init

Reinitialized existing Git repository in D:/Git-Repository/.git/

lx@SE2-PC MINGW64 /d/Git-Repository (master)

lx@SE2-PC MINGW64 /d/Git-Repository (master)

$ git add readme.txt

warning: LF will be replaced by CRLF in readme.txt.

The file will have its original line endings in your working directory

lx@SE2-PC MINGW64 /d/Git-Repository (master)

$ git commit -m"QZL 2019-0-08 11:26 第一次提交Git文件"

*** 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 'lx@SE2-PC.(none)')

lx@SE2-PC MINGW64 /d/Git-Repository (master)

$ git config --global user.name "QZL"

lx@SE2-PC MINGW64 /d/Git-Repository (master)

$ git config --global user.eamil "17621721582@163.com"

lx@SE2-PC MINGW64 /d/Git-Repository (master)

$ git commit -m "QZl 在2019-08-08 11:29 第二次提交Git文件(第一次提交失败)"

*** 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 'lx@SE2-PC.(none)')

lx@SE2-PC MINGW64 /d/Git-Repository (master)

$

在上一步已经告诉它 user.name 和user.email 了(但是没什么提示,我用--list查看已经有我的信息了),为什么在提交文件的时候还是不行呢。烦请大佬解释下,感谢

陌生人_Cao

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

问下,你的问题解决了吗?我看到你配置全局邮箱的地方写错了, "email",你写成了 "eamil"


  • 1

Reply