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