关于git的 unable to auto-detect email address (got '[email protected](none)')错误的解决方法

错误出现在初次使用git的时候~~~~
使用git commit的时候出现了如下错误:

unable to auto-detect email address (got ‘[email protected](none)’)

关于git的 unable to auto-detect email address (got '[email protected](none)')错误的解决方法
以及:

empty ident name (for [email protected]) not allowed

关于git的 unable to auto-detect email address (got '[email protected](none)')错误的解决方法
解决方法:
根据报错的tell me who you are,直接告诉git who I am.

输入命令:git config --global user.name “此处输入你的名字”

然后重新运行一下add和commit.
就可以成功commit啦~。