dotfiles/home/private_dot_config/git/config.tmpl

46 lines
1 KiB
Cheetah
Raw Normal View History

2021-12-08 09:38:24 -06:00
[credential]
helper = cache
[core]
excludesfile = /home/{{- .chezmoi.username -}}/.config/git/ignore
2021-12-08 09:38:24 -06:00
[user]
name = {{ .name }}
email = {{ .email }}
2021-12-08 09:38:24 -06:00
[submodule]
recurse = true
[pull]
rebase = true
[init]
defaultBranch = main
[branch]
autosetuprebase = always
[alias]
2022-09-12 10:58:10 -05:00
root = rev-parse --show-toplevel
2021-12-08 09:38:24 -06:00
adog = log --all --decorate --oneline --graph
2022-07-19 09:34:49 -05:00
gl = config --global -l
last = log -1 HEAD --stat
ll = log --oneline
st = status -sb
s = status -s
2022-09-13 12:53:18 -05:00
dd = !git diff | delta
sd = !git show | delta
2022-07-19 09:34:49 -05:00
co = checkout
cob = checkout -b
2022-07-28 15:57:02 -05:00
cmt = !git commit -m \"time: $(date +\"%Y.%m.%d %H:%M:%S\")\"
save = !git add -A && git commit -m \"time: $(date +\"%Y.%m.%d %H:%M:%S\")\"
2022-07-19 09:34:49 -05:00
# list aliases
la = "!git config -l | grep alias | cut -c 7-"
2022-04-29 10:37:55 -05:00
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
2022-07-19 09:34:49 -05:00
[help]
2022-09-12 10:58:10 -05:00
autocorrect = 20
[delta]
line-numbers = true
theme = catppuccin
2022-09-13 12:53:18 -05:00
; hunk-header-decoration-style = none
diff-so-fancy = true
hunk-header-style = bold