查看git的用户名和密码
转载自:https://www.cnblogs.com/xihailong/p/13354628.html
一、查看
查看用户名 :git config user.name
查看密码: git config user.password
查看邮箱:git config user.email
查看配置信息: $ git config --list
二、修改
修改用户名
git config --global user.name “xxxx(新的用户名)”
修改密码
git config --global user.password “xxxx(新的密码)”
修改邮箱
git config --global user.email “xxxx@xxx.com(新的邮箱)”
修改报错:

原因:用户名过多

解决办法:$ git config --global --replace-all user.name “你的 git 的名称”
$ git config --global --replace-all uesr.email “你的 git 的邮箱”

————————————————
版权声明:本文为CSDN博主「例行我志」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_42012908/article/details/116757606
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐



所有评论(0)