git 查看/修改用户名、密码

  • 用户名和邮箱地址的作用

    用户名和邮箱地址是本地git客户端的一个变量,不随git库而改变。

    每次commit都会用用户名和邮箱纪录。

    github的contributions统计就是按邮箱来统计的。

  • 查看用户名和邮箱地址:

    $ git config user.name
    
    $ git config user.email
    
    • 1
    • 2
    • 3
  • 修改用户名和邮箱地址:

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

--------------------- 本文来自 bit_girl 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/bit_girl/article/details/53560885?utm_source=copy 

猜你喜欢

转载自www.cnblogs.com/yzl050819/p/9721080.html