wynjauu

打开C盘里的 .gitconfig文件

看下git的用户名和email是否与自己的相符

如果不相符,在桌面打开git终端,输入以下命令:

修改当前项目的用户名和邮箱地址:

$ git config  user.name  "username"

$ git config  user.email  "email" 

修改全局用户名和邮箱地址:

$ git config --global user.name "username"

$ git config --global user.email "email"

查看git用户名和邮箱地址命令:

$ git config user.name

$ git config user.email

如图:

另外:idea 中git commit时有这一框可以选择 选择自己的

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-11-10
  • 2021-12-07
  • 2021-05-13
  • 2021-12-13
  • 2022-01-15
  • 2022-12-23
  • 2021-06-24
猜你喜欢
  • 2022-12-23
  • 2022-02-08
  • 2021-08-02
  • 2022-12-23
相关资源
相似解决方案