ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# git config 的常用命令 ## `git config` >[success]config 配置有system级别 global(用户级别) 和local(当前仓库)三个 设置先从system-》global-》local  底层配置会覆盖顶层配置 分别使用--system/global/local 可以定位到配置文件 ## 查看系统config ~~~ git config --system --list ~~~ ## 查看当前用户(global)配置 ~~~ git config --global  --list ~~~ ## 查看当前仓库配置信息 ~~~ git config --local --list //或 git cofnig --list ~~~ ## 配置 格式如下: ~~~ //全局 git config --global user.name "myname" git config --global user.email "test@gmail.com" //仓库 git cofnig user.name "myname" git config user.email "test@gmail.com" ~~~