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
相关推荐
星月心城2 小时前
git提交代码时所遇问题
大数据·git·elasticsearch
Dolphin_海豚2 小时前
到底是选 merge 还是选 rebase
git·面试·程序员
云和数据.ChenGuang2 小时前
采集Git相关日志(结合Filebeat)
大数据·git·elasticsearch
苹果电脑的鑫鑫4 小时前
git如何撤销上次上传的内容
大数据·git·elasticsearch
Sapphire~5 小时前
Git --- Local Changes Prevent from Pull
git
UX20175 小时前
Git LFS 管理 Unity 大文件
git·unity
bad-Lz5 小时前
git代码库管理
大数据·git·elasticsearch
YMGogre6 小时前
GitHub 仓库管理员
git·github
好好学习O(∩_∩)O6 小时前
git快速复习(分支篇)
git
头发那是一根不剩了7 小时前
Git :如何把多次提交的功能分支合并提交到 master,只保留一条提交记录
git