dot-files/git/.gitconfig
Bruno BELANYI 826db6d2de [ADD][GIT] Better diff colors
I like having some colors for the meta-information shown during
diff operations.

Using the `diff-hightlight` script, you can get character-level
highlights of your diffs (just like GitHub and GitLab).
2019-10-19 05:46:29 +02:00

54 lines
1.3 KiB
INI

[core]
excludesfile = ~/.gitignore
[color]
ui = auto
branch = auto
diff = auto
interactive = auto
status = auto
[commit]
verbose = true
[pull]
rebase = true
[branch]
autosetubrebase = always
[push]
default = simple
[rebase]
autoSquash = true
autoStash = true
[pager]
diff = /usr/share/git/diff-highlight/diff-highlight | less
log = /usr/share/git/diff-highlight/diff-highlight | less
show = /usr/share/git/diff-highlight/diff-highlight | less
[color "diff"]
commit = yellow
meta = yellow
frag = cyan
old = red
new = green
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newhighlight = green bold 22
[user]
email = bruno.belanyi@epita.fr
name = Bruno BELANYI
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
trim = reflog expire --expire-unreachable=now --all
chop = gc --prune=now
optimize = repack -a -d -f --depth=250 --window=250
pf = pull --ff-only
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true