git 配置

vi ~/.gitconfig

安装开源命令行对比工具 delta: https://github.com/dandavison/delta

详细设置delta:https://www.5axxw.com/wiki/content/xrx4vf

bash 复制代码
[user]
	name = xx
	email = xx@xxxx.com

[core]
	attributesfile = ~/.gitattributes
	pager = delta
	quotepath = false
	
[credential]
	helper = cache --timeout=3600

[color]
	diff = auto
	status = auto
	branch = auto
	interactive = auto
	ui = true
	pager = true

[interactive]
	diffFilter = delta --color-only

[pull]
	rebase = true
	
[diff]
	colorMoved = default
	
[diff "image"]
	command = compare $2 $1 png:- | montage -geometry +4+4 $2 - $1 png:- | display -title \"$1\" -

[merge]
	conflictstyle = diff3
	ff = no
	commit = no

[delta]
	side-by-side = true
	line-numbers-left-format = ""
	line-numbers-right-format = "│ "
	syntax-theme = Nord
	navigate = true
	light = false

[clone]
	#recurseSubmodules = true

[alias]
	st = status
	br = branch
	lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
	last = log -1
相关推荐
最贪吃的虎3 分钟前
Git: rebase vs merge
java·运维·git·后端·mysql
charlie1145141916 小时前
Git团队协作完全入门指南(上)
笔记·git·学习·教程·工程
迷茫的启明星6 小时前
Git命令学习
git·学习
云和数据.ChenGuang10 小时前
运维工程师技术教程之Pull Requests(PR)
运维·分布式·git·数据库运维工程师·运维教程
好好学习O(∩_∩)O11 小时前
Git快速复习(基础指令篇)
git
Franklin11 小时前
如何解决git HEAD detached 分离头指针问题
git·python·pycharm
one-ccs11 小时前
git 多分支工作流
git
黛玉晴雯子00111 小时前
Devops基础之Gitlab概述(持续更新)
git
mike041213 小时前
Windows11安装git后与github联动
git·github
Joy T13 小时前
【Git 原理进阶】平行宇宙的熵减:深度解析“分叉”与“三路合并”机制
git