美文网首页
【CMD】git设置用户名和邮箱

【CMD】git设置用户名和邮箱

作者: 盐果儿 | 来源:发表于2024-02-21 22:16 被阅读0次

1. 设置用户名和和邮箱

git config --global user.name "<user name>" 

git config --global user.email "<user email>"

2. 查看用户名和密码

git config user.name

git config user.password

git config user.email

git config --list

3. 修改用户名和密码

git config --global user.name "<new user name>"

git config --global user.password "<new user password>"

git config --global user.email "<new user email>"

4. 查看git所有的全局配置

git config --list

相关文章

网友评论

      本文标题:【CMD】git设置用户名和邮箱

      本文链接:https://www.haomeiwen.com/subject/dkjwadtx.html