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