git配置


layout: post
title: git配置
author: "luowentaoaa"
catalog: true
tags:
mathjax: true

//配置的是你个人的用户名称和电子邮件地址
$ 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
原文地址:https://www.cnblogs.com/luowentao/p/10431753.html