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

相关推荐
犹若故人归6 小时前
Github/Gitee和Git实践
git·gitee·github
007php0077 小时前
mySQL里有2000w数据,Redis中只存20w的数据,如何保证Redis中的数据都是热点数据
数据库·redis·git·mysql·面试·职场和发展·php
fakerth8 小时前
Git 完全指南:从入门到精通
git
XiaoHu02079 小时前
Linux网络编程套接字
linux·服务器·网络·git
AlexDeng10 小时前
Git 实战:我用 git worktree 一次性拉取多个工作目录
git
import_random10 小时前
[git版本控制]git pull origin main
git
ShallowLin10 小时前
Git 的分支管理
git
chen_22714 小时前
搭建git工作流
git
Rabbit_QL17 小时前
【git reset】个人分支一次精准撤回 git push 的实战记录
git
掘金忠实用户程序员18 小时前
Git多仓库协作场景
git