git配置用户名和密码
全局配置
1 | git config --global user.name "Your Name" |
全局配置删除
1 | git config --global --unset user.name |
系统全局配置删除
系统配置会影响系统上所有用户的所有 Git 仓库,操作时需谨慎。删除系统配置的用户和邮箱信息,使用以下命令:
1 | git config --system --unset user.name |
全局配置查看
1 | git config --global --list |
系统全局配置查看
1 | git config --system --list |