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
|
|
|
|
|
2023-07-12 12:43:28 -05:00
|
|
|
[push]
|
|
|
|
autoSetupRemote = true
|
|
|
|
|
2021-12-08 09:38:24 -06:00
|
|
|
[alias]
|
2023-09-10 16:37:36 -05:00
|
|
|
adog = log --all --decorate --oneline --graph
|
2024-05-20 11:57:29 -05:00
|
|
|
l = log --format=tformat:'%C(bold magenta)%h%C(reset) %C(bold)%s%C(reset)%C(auto)%d%C(reset) %C(green)%ar%C(reset) %C(dim white)%aN%C(reset)'
|
2023-09-10 16:37:36 -05:00
|
|
|
lf = log --graph --format=tformat:'%C(bold yellow)%h%C(reset) %C(cyan)%aD%C(reset) %C(green)(%ar) %C(dim white)%aN%C(reset)%w(0,0,9)%n %C(bold)%s%C(auto)%+d%C(reset)%w(0,0,10)%+b'
|
2023-09-18 13:08:40 -05:00
|
|
|
lg = "!f() { x=${1-6};\
|
2023-09-11 10:23:31 -05:00
|
|
|
length=$(expr $x + 8);\
|
|
|
|
git log --color --graph --all \
|
2023-12-18 11:47:16 -06:00
|
|
|
--format=format:\"%>|($length)%C(bold blue)%h%C(reset) %C(bold green)%><(15,trunc)%ar%C(reset)%C(bold yellow)%d%C(reset) %s - %C(red)%an%C(reset)\";\
|
2023-09-10 16:37:36 -05:00
|
|
|
};\
|
|
|
|
f"
|
2023-06-12 11:04:03 -05:00
|
|
|
ignore = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi"
|
2023-01-25 10:19:16 -06:00
|
|
|
root = rev-parse --show-toplevel
|
|
|
|
last = log -1 HEAD --stat
|
|
|
|
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\")\"
|
2023-09-10 16:37:36 -05:00
|
|
|
aliases = "!git config -l | grep alias | cut -c 7-"
|
2023-01-25 10:19:16 -06:00
|
|
|
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
|
|
|
|
2023-09-10 16:37:36 -05: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
|
|
|
|
|