1. 查看当前工程的用户名与邮箱
git config user.name
git config user.email
2. 修改当前工程的用户名与邮箱
git config user.name 你的目标用户名
git config user.email 你的目标邮箱名
3.修改全局的用户名与邮箱
git config --global user.name 你的目标用户名
git config --global user.email 你的目标邮箱名
4. 使用用户名与密码
# git clone http://邮箱(或用户名):密码@仓库
# 邮箱中的@用%40表示
git clone http://xw%40qq.com:xw@git.123.com/abc/demo