输入
$ git config --list
可以看到user.name 和user.email 的配置。
如果你没有初始化过,那么直接:
$ git config --global user.name "输入你的用户名"
$ git config --global user.email "输入你的邮箱"
如果初始化过,输入
$ git config --global --replace-all user.name "输入你的用户名"
$ git config --global --replace-all user.email "输入你的邮箱"
网友评论