设置用户名和邮箱,使用命令: git config --global user.name 用户名 git config --global user.email 邮箱 如下: 在windows的用户目录下可以看到配置好的用户,如下: