dotfiles/gitconfig

84 lines
3.1 KiB
Plaintext
Raw Normal View History

[include]
path = ~/.gitconfig.platform
path = ~/.gitconfig.private
2013-04-21 23:36:08 +00:00
[merge]
summary = true
2013-05-08 02:34:57 +00:00
tool = vimdiff
[core]
2016-10-23 16:44:54 +00:00
excludesfile = ~/.gitignore
hookspath = ~/.git_hooks
2019-12-31 05:38:46 +00:00
preloadindex = true
fscache = true
2013-05-08 02:34:57 +00:00
[push]
2015-10-16 05:09:39 +00:00
default = upstream
2013-05-08 02:34:57 +00:00
[diff]
2015-10-16 05:09:39 +00:00
algorithm = patience
2012-04-19 14:23:13 +00:00
[color]
2013-04-21 23:36:08 +00:00
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = blue
frag = magenta
old = red
new = green
2015-10-16 05:09:39 +00:00
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
2015-10-16 05:09:39 +00:00
required = true
process = git-lfs filter-process
2015-10-16 05:09:39 +00:00
[alias]
# Note: I'm using %ad in the pretty log to see the author's timestamp, as
# opposed to %cr which is the commiter's timestamp. I prefer the former
# because I sometimes edit an earlier commit message while rebasing and I
# want to continue to see the original date.
2020-05-04 17:23:17 +00:00
#
# @note If you want a grey that's slightly darker than %C(white dim) then
# try %C(black bold).
#
# Style 1
#lg = log --graph --date=relative --pretty=format:'%C(yellow bold)%h %Creset%C(white dim)[%Creset%an%Creset%C(white dim)]%Creset%C(yellow bold)%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset'
2020-05-04 17:23:17 +00:00
# Style 2
#lg = log --graph --date=relative --pretty=format:'%C(yellow bold)%h [%Creset%an%Creset%C(yellow bold)]%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset'
2020-05-04 17:23:17 +00:00
# Style 3
#lg = log --graph --date=relative --pretty=format:'%C(yellow bold)%h %Creset<%an> %C(yellow bold)%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset'
2020-05-04 17:23:17 +00:00
# Style 4
#lg = log --graph --date=relative --pretty=format:'%C(yellow bold)%h %Creset[%an] %C(yellow bold)|%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset'
2020-05-04 17:23:17 +00:00
# Style 5
#lg = log --graph --date=relative --pretty=format:'%C(yellow bold)%h|%Creset%an%Creset%C(yellow bold)|%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset'
2020-05-04 17:23:17 +00:00
# Style 6
#lg = log --graph --date=relative --pretty=format:'%C(yellow bold)%h|%Creset%C(yellow dim)%an%Creset%C(yellow bold)|%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset'
2020-05-04 17:23:17 +00:00
# Style 7
lg = log --graph --date=relative --pretty=format:'%C(yellow bold)%h %Creset%C(yellow dim)%an %Creset%C(yellow bold)| %Creset%C(white bold)%s %C(white dim)[%ad|%cr] %Creset%C(yellow bold)%d %C(cyan bold)%<(8,trunc)%GK%Creset'
2020-05-04 17:23:17 +00:00
# Style 8
#lg = log --graph --date=relative --pretty=format:'%C(yellow bold)%h%Creset%C(white dim)|%Creset%an%Creset%C(white dim) >%Creset%C(yellow bold)%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset'
2020-05-04 17:23:17 +00:00
# Style 9
#lg = log --graph --date=relative --pretty=format:'%C(yellow bold)%h%C(black bold)|%C(white dim)%an%Creset%C(yellow bold) >%d %Creset%C(white bold)%s %C(black bold)<%ad|%cr>%Creset'
2020-05-04 17:23:17 +00:00
# Style 10
#lg = log --graph --date=relative --pretty=format:'%C(yellow bold)%h %Creset%C(yellow dim)%an%Creset%C(yellow bold) >%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset'
2020-05-04 17:23:17 +00:00
2019-12-31 05:38:46 +00:00
start = !git init && git commit --allow-empty -m \"Initial commit\"
2015-10-16 05:09:39 +00:00
[rerere]
enabled = true
2019-12-31 05:38:46 +00:00
[gc]
auto = 0
2020-02-28 19:11:29 +00:00
[advice]
detachedHead = false