问题全文:
Author identity unknown
*** 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 'ky@DESKTOP-GTKJFP8.(none)')
需要将文件和邮箱按照步骤提交一遍 ,可以成功。
ky@DESKTOP-GTKJFP8 MINGW64 ~/Workspaces/gitreps (master)
$ git config --global user.name "cc"
ky@DESKTOP-GTKJFP8 MINGW64 ~/Workspaces/gitreps (master)
$ git config --global user.email "1040577980@qq.com
>
> "
ky@DESKTOP-GTKJFP8 MINGW64 ~/Workspaces/gitreps (master)
$ git commit --m "add all files into repository"
[master (root-commit) e6678bf] add all files into repository
4 files changed, 1 insertion(+)
create mode 100644 1.txt
create mode 100644 2.txt
create mode 100644 fistTest.txt
create mode 100644 test.txt