git配置

//配置的是你个人的用户名称和电子邮件地址
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
//查已有的配置信息,可以使用 git config --list 命令
$ git config --list
user.name=Scott Chacon
user.email=schacon@gmail.com
color.status=auto
color.branch=auto
color.interactive=auto
color.diff=auto
...
//查阅某个环境变量的设定
$ git config user.name
Scott Chacon
//使用帮助
$ git help <verb>
$ git <verb> --help
$ man git-<verb>
$ git help config
posted @ 2019-02-25 16:46  luowentao  阅读(124)  评论(0编辑  收藏  举报