git修改全局账号密码

输入

$ git config --list 

查看当前git全局配置,包括

user.name=...

user.email=...


修改分为两种情况:

1.user.name和user.email的值为空

    $  git config --global user.name "输入你的用户名"

    $  git config --global user.email "输入你的邮箱"

       

2.user.name和user.email已经有值   

    $  git config --global --replace-all user.name "输入你的用户名"
    $  git config --global --replace-all user.email "输入你的邮箱"  




- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

猜你喜欢

转载自blog.csdn.net/Drongguang/article/details/80348608