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
相关推荐
ZXF_H39 分钟前
pip安装github上的开源软件包
git·python·github·pip
前端李易安9 小时前
Git工作原理与常用方法汇总
git
黎相思12 小时前
Git的安装和使用
git
xianwu54316 小时前
MySQL索引原理
linux·开发语言·网络·c++·git
purples.17 小时前
上传本地文件到GitHub
windows·git·github
Blue桃之夭夭19 小时前
Git Github Gitlab与Gitee的关系
git·gitee·gitlab
Evenurs21 小时前
【git】取消一个已提交的文件或路径的追踪
大数据·git·elasticsearch
XIE3921 天前
如何开发一个脚手架
前端·javascript·git·npm·node.js·github