hexo d错误:fatal: unable to auto-detect email address

1.报错内容

     、
             
      *** Please tell me who you are.

      Run

    git config --global user.email "[email protected]"
    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 
    'helei@LAPTOP-6JRMEKMH.(none)')
    Everything up-to-date
    Branch 'master' set up to track remote branch 'master' from 
    'https://github.com/ithelei/ithelei.github.io.git'.
   �[32mINFO �[39m Deploy done: �[35mgit�[39m
      、
image.png

解决方案:

1.在文件浏览器中勾选显示隐藏的项目

image.png

2.进入我们博客目录的“.deploy_git.git”子目录,找到config文件。

image.png

3.打开config文件,添加以下内容

[user]
[email protected]
[email protected]
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[branch "master"]
remote = https://github.com/ithelei/ithelei.github.io.git
merge = refs/heads/master

image.png

你可能感兴趣的:(hexo d错误:fatal: unable to auto-detect email address)