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
相关推荐
-拟墨画扇-5 小时前
Git | 分支管理操作
git·gitee·github·gitcode
ModestCoder_5 小时前
Git 版本管理教程
大数据·git·elasticsearch
YMGogre5 小时前
Git 提交信息规范
git
charlie1145141916 小时前
Git团队协作完全入门指南(下)
git
golang学习记8 小时前
Facebook 为什么不用 Git?
git·elasticsearch·facebook
GIS阵地9 小时前
git拉取时报错
大数据·git·elasticsearch
无限进步_11 小时前
C++ Vector 全解析:从使用到深入理解
开发语言·c++·ide·windows·git·github·visual studio
charlee4412 小时前
Git使用经验总结9-Git提交关联到Issue
git·issue
-拟墨画扇-12 小时前
Git | Bug分支操作
git·gitee·github·bug·gitcode
-拟墨画扇-14 小时前
Git | Feature分支操作
git·gitee·github·gitcode