打开终端,输入:

git config --global user.email  "你的邮箱"

git config --global user.name  "你的名字"

输入完后再接着执行git commit 即可