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
相关推荐
m0_743697592 小时前
关于ftp与SELinux的冲突问题
git·github
前进的程序员2 小时前
VS Code Git 工作树:多分支并行开发体验
git·vs code·git工作树
半夜修仙2 小时前
二.Git分支管理
git
六bring个六5 小时前
git使用笔记
笔记·git
最后冰吻free8 小时前
git 不新增commit修改中间commit对应的文件
git
芳草萋萋鹦鹉洲哦8 小时前
【git】重新生成并添加 SSH Key(Mac)
git·macos·ssh
午安~婉9 小时前
git中http与ssh连接
git·http·ssh
@Demi9 小时前
前端开发 Git 分支与 Tag 管理规范
大数据·git·elasticsearch
炸膛坦客1 天前
Git 和 GitHub:(七)将本地新建仓库与 GitHub 远程仓库关联起来(SSH)
git·ssh·github
炸膛坦客1 天前
Git 和 GitHub:(六)在本地新建仓库并进行一次提交
git·github