dotfiles/home/private_dot_config/git/config.tmpl

81 lines
1.9 KiB
Cheetah
Raw Normal View History

2021-12-08 09:38:24 -06:00
[core]
2023-01-25 10:19:16 -06:00
excludesfile = /home/{{- .chezmoi.username -}}/.config/git/ignore
2021-12-08 09:38:24 -06:00
[user]
2023-01-25 10:19:16 -06:00
name = {{ .name }}
email = {{ .email }}
2023-02-24 14:19:10 -06:00
signingkey = 7AD9DB430EE2B3C1D86BF3243CD66E04B8072F3E
[commit]
gpgSign = true
[tab]
gpgSign = true
2023-01-25 10:19:16 -06:00
[credential]
helper = cache
2021-12-08 09:38:24 -06:00
[submodule]
2023-01-25 10:19:16 -06:00
recurse = true
2021-12-08 09:38:24 -06:00
[pull]
2023-01-25 10:19:16 -06:00
rebase = true
2021-12-08 09:38:24 -06:00
[init]
2023-01-25 10:19:16 -06:00
defaultBranch = main
2021-12-08 09:38:24 -06:00
[branch]
2023-01-25 10:19:16 -06:00
autosetuprebase = always
2021-12-08 09:38:24 -06:00
[alias]
2023-01-25 10:19:16 -06:00
root = rev-parse --show-toplevel
adog = log --all --decorate --oneline --graph
lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold cyan)%h%C(reset) ->%C(bold yellow)%d%C(reset) %C(white)%s%C(reset) %C(green)(%ar)%C(reset) %C(dim white)- %an%C(reset)'
last = log -1 HEAD --stat
ll = log --oneline
st = status -sb
s = status -s
dd = !git diff | delta
sd = !git show | delta
co = checkout
cob = checkout -b
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
undo = reset HEAD~1 --mixed
wip = !git add -A && git commit -m \"wip: $(date +\"%Y.%m.%d %H:%M:%S\")\"
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\")\"
la = "!git config -l | grep alias | cut -c 7-"
gl = config --global -l
2023-02-06 12:01:21 -06:00
rb5 = rebase -i HEAD~5
2023-02-22 10:24:37 -06:00
frbi = "!f() { git rebase -i $(git log --pretty=oneline --color=always --abbrev-commit | fzf --ansi | cut -d ' ' -f1)^ ; }; f"
2023-01-25 10:19:16 -06:00
2022-04-29 10:37:55 -05:00
[filter "lfs"]
2023-01-25 10:19:16 -06:00
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]
2023-01-25 10:19:16 -06:00
autocorrect = 20
2022-09-12 10:58:10 -05:00
[delta]
2023-01-25 10:19:16 -06:00
line-numbers = true
navigate = true # use n and N to move between diff sections
theme = catppuccin
; hunk-header-decoration-style = none
diff-so-fancy = true
hunk-header-style = bold
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[merge]
conflictstyle = diff3
[diff]
colorMoved = default