Git配置和钩子使用

0 Preface/Foreword

1 Usage

1.1 参考 

 https://www.cnblogs.com/guge-94/p/11287535.html

1.2 基本配置

 1.2.1 配置名字和邮箱

git config --global user.name "xxx"

git config --global user.email "xxx"

1.3 客户端基本配置 

1.3.1 core.editor

git使用的默认编辑器,默认为Vi,也可设置成emacs

1.3.2 commit.template

提交时会自动带入模版内容。

1.3.3 core.page

指定分页器,可以设置成more或者其他,默认是less。

1.3.4 help.autoCorrect

在敲git 命令时,如果模糊匹配后只有一个命令,如果设置了该变量为1,则会自动运行匹配的命令。

1.4 Git输出着色

1.4.1 color.ui 

1.5 格式化和空白

1.5.1 core.autocrlf

1.5.2 core.whitespace

你可能感兴趣的:(git,git)