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
相关推荐
jimy14 小时前
GitHub的codespaces入门,以及git设置
git·github
睡醒了叭6 小时前
缝缝补补---Git使用
git
Alkaid:15 小时前
GIT常用命令
大数据·git
我命由我123451 天前
Android Studio - 在 Android Studio 中直观查看 Git 代码的更改
android·java·开发语言·git·java-ee·android studio·android jetpack
无证驾驶梁嗖嗖1 天前
git_lab_事故恢复全过程(ubuntu_22
linux·git·ubuntu
何中应1 天前
CentOS7安装Git
运维·git·centos·开发工具
微尘hjx1 天前
【GitHub 代码仓 02】git命令操作示例
git·elasticsearch·github
阿正的梦工坊1 天前
Git提交中的perf和chore是什么?
git
Fly feng1 天前
git rebase 变基操作教程
git
laoliu19961 天前
开源 FRP GUI 客户端
git·开源·github