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
网友评论