当前位置:   article > 正文

设置、查看或修改Git的用户名和邮箱_ubuntu查看git用户名

ubuntu查看git用户名

1.设置Git的用户名和密码
首先打开Git Bash,一般在桌面上鼠标右键就可以看见。在第一次安装完Git之后需要设置Git的用户名和密码,命令如下:

git config --global user.name "name"
git config --global user.email "email"
  • 1
  • 2

在这里插入图片描述
2.查看Git的用户名和密码

git config user.name
git config user.email
  • 1
  • 2

在这里插入图片描述
3.修改Git的用户名和邮箱

git config --global user.name "name"
git config --global user.email "email"
  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/煮酒与君饮/article/detail/787640
推荐阅读
相关标签
  

闽ICP备14008679号