github commit时出现 Please tell me who you are.以及项目名称管理

github commit时出现 Please tell me who you are.....

第一种设置全局的,

直接在命令行输入

git config --global user.email "you@example.com"

git config --global user.name "Your Name"

第二种设置单独的,在每个仓库里的.git下有个config文件,在里面添上

[user]
    name = XXX(自己的名称)
    email = XXXX(邮箱)

当全局的和单独的都存在时,默认使用单独的
原文地址:https://www.cnblogs.com/creativepower/p/7624596.html