1、查看本地属性

git config --local --list

2、修改全局的用户名和邮箱

git config  --global user.name 你的目标用户名;
git config  --global user.email 你的目标邮箱名

3、修改当前project的用户名和邮箱

git config user.name 你的目标用户名;
git config user.email 你的目标邮箱名;

4、也可以直接修改.gitconfig文件

 vi ~/.gitconfig;   然后在文件中直接修改即可.

 

 

 

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2021-11-10
  • 2021-09-24
  • 2022-02-08
  • 2022-02-14
猜你喜欢
  • 2021-04-14
  • 2021-07-13
  • 2022-12-23
  • 2022-02-08
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案