全局配置文件:.git/config
.git/config
配置用户名:$ git config --global user.name "John Doe"
$ git config --global user.name "John Doe"
配置用户邮箱:$ git config --global user.email johndoe@example.com
$ git config --global user.email johndoe@example.com
关联远程仓库:$ git remote add origin git@....../...git
查看全局配置命令:$ git config -l