git 查看、切换用户

查看命令:

查看用户名:

git config user.name

查看用户邮箱:

git config user.email

修改命令:

修改用户名:

git config --global user.name "Your_username"

修改用户邮箱:

git config --global user.email "Your_email"

注:user.name或者user.email后需有一个空格,再写你的用户名或者用户邮箱

猜你喜欢

转载自www.cnblogs.com/xiaodai0/p/10291366.html
今日推荐