Git 的配置

查看版本

$ git —version

配置

$ git config --global user.name "xx"
$ git config --global user.email xx@example.com
//--system 系统配置
//--global 该用户的全局配置

查看配置信息

$ git config --list
$ git config user.name

获取帮助,任意一个都可以

$ git help config
$ git config --help
$ man git-config

原文地址:https://www.cnblogs.com/zhongsr/p/10855526.html