git 查看、切换用户

时间:2025-03-02 15:38:40

查看命令:

查看用户名:

git config 

查看用户邮箱:

git config 

修改命令:

修改用户名:

git config --global  "Your_username"

修改用户邮箱:

git config --global  "Your_email"

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