Dotfiles/git/.gitconfig
Jonathan Hodgson 9ef522ba25 Makes delta my default git pager
This adds nicer syntax higlighting etc.

https://github.com/dandavison/delta
2020-05-25 12:07:32 +01:00

26 lines
1.1 KiB
INI

[user]
email = git@jonathanh.co.uk
name = Jonathan Hodgson
[core]
editor = vim -c 'startinsert'
excludesfile = ~/.dotfiles/git/global_gitignore
pager = delta --theme='gruvbox' --plus-color="#98971a" --minus-color="#9d0006"
[status]
submoduleSummary = true
[alias]
#lol = log --graph --decorate --pretty=oneline --abbrev-commit
lol = log --graph --pretty=format:\"%C(yellow)%h %C(blue)%cd %C(green)%cn %C(white) - %s\" --date=format:\"%d/%m/%Y %H:%M:%S\"
#lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lola = log --graph --pretty=format:\"%C(yellow)%h %C(blue)%cd %C(green)%cn %C(white) - %s\" --date=format:\"%d/%m/%Y %H:%M:%S\" --all
lolame = log --graph --pretty=format:\"%C(yellow)%h %C(blue)%cd %C(green)%cn %C(white) - %s\" --date=format:\"%d/%m/%Y %H:%M:%S\" --all --author=Jonathan
ilog = recall
detach = "!git checkout $(git rev-parse HEAD)"
undo = reset --soft HEAD^
random-commit = "!git commit -m \"$(w3m whatthecommit.com | head -n 1)\""
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f