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

相关推荐
小陈同学呦32 分钟前
Git Worktree 并行开发实战指南
git·vibecoding
码农小旋风1 小时前
2026 最新 Claude Code Windows 安装教程:Node、Git Bash、命令检查一步步配好
windows·git·bash·claude
ethan.Yin1 小时前
Git_查看已删除文件的历史
git
KieranYin16 小时前
Git_查看已删除文件的历史
git
星谐18 小时前
GitX智能版本控制助手:告别Git命令行,让版本控制更高效
git
错把套路当深情18 小时前
Git 常用命令大全
git
向上_503582911 天前
解决git提交冲突
git
学习使我健康1 天前
Git Submodule 深度避坑指南
git
Mapleay1 天前
git notes
git
zhougl9961 天前
非root用户,链接ssh,并上传git
运维·git·ssh