git切换账号邮箱

git config user.name 查看当前用户名

git config user.email 查看当前邮箱

git config --global user.name "用户名" 切换账号

git config --global user.email "邮箱"  切换邮箱

原文地址:https://www.cnblogs.com/yeshenmeng/p/11840002.html