Git暂存代码出现unable to auto detect email address '',Cannot save the current index state

当我们在使用git暂存代码的时候,有时候可能出现下面的错误,原因是我们刚安装了git,但是还要进行一些信息的配置。
Git暂存代码出现unable to auto detect email address '',Cannot save the current index state

解决办法:
在任意路径下,鼠标右键,选择git bash,进入git的命令行
配置下我们的邮箱。顺便把用户名也配置了
Git暂存代码出现unable to auto detect email address '',Cannot save the current index state
这时候git就可以正常工作了