0


Git修改提交代码时的用户名信息

Git修改提交代码时的用户名信息

1.本地配置文件修改

在C盘【C:\Users\Administrator】中找到.gitconfig文件进行更改(修改用户名以及邮箱即可)
  [user]
    name = xxxxx
    email = xxxxx@xxx.com

2.命令修改方式

在Terminal中进行操作:
    git config user.name 查看用户名
    git config user.email 查看邮箱
    
    git config --global user.name "xxxxx"   修改用户名
    git config --global user.email "[email protected]"   修改邮箱
标签: git java

本文转载自: https://blog.csdn.net/weixin_44711823/article/details/136164324
版权归原作者 战域 所有, 如有侵权,请联系我们删除。

“Git修改提交代码时的用户名信息”的评论:

还没有评论