目录
1.安装Git
在 Windows 平台上安装 Git
2.个人配置
下载安装完成后配置个人用户名称与邮箱地址
$ git config --global user.name "runoob"
$ git config --global user.email test@runoob.com
//global选项默认修改主目录下的配置文件,该目录下所有项目都会使用该用户信息
//特定项目需要修改用户名时去除global重新配置即可,该信息存入.git/config
Git默认文本编译器为Vi或Vim
3.查看配置信息
$ git config --list//使用该命令
http.postbuffer=2M
user.name=runoob
user.email=test@runoob.com
若变量名重复,则说明其来自不同的配置文件
vim ~/.gitconfig
显示内容如下:
[http]
postBuffer = 2M
[user]
name = runoob
email = test@runoob.com
也可直接查阅特定环境变量的配置
$ git config user.name
runoob