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

2024-02-21  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读