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
相关推荐
瑞瑞小同学6 小时前
git 常用相关操作
git
金銀銅鐵6 小时前
[git] 如何合并若干个 commit?(上)
git
洛菡夕10 小时前
NoSQL之Redis配置与优化
redis·git·nosql
游九尘15 小时前
git只忽略自己本地的文件,其他人的文件正常提交
git
SiYuanFeng16 小时前
新手学Git:以一个小游戏项目为例,完成初始化、提交、查看历史与恢复版本
大数据·git·elasticsearch
rayyy917 小时前
Git 忽略已提交过的文件夹 完整步骤
git
YoseZang17 小时前
【手工】git的使用 - 密钥生成和多账户使用(config文件)
git
韭菜钟17 小时前
Git 代理与内网 Gitea 共存方案(无需 no_proxy)
git·gitea
zhougl99619 小时前
Git 命令速查手册
大数据·git·elasticsearch
小陈同学呦19 小时前
Git Worktree 并行开发实战指南
git·vibecoding