Created
December 6, 2022 13:57
-
-
Save juliavdkris/2351b9ca67cfef7323399262b53ae6ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| name = Julia van der Kris | |
| email = julia@juuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuulia.dev | |
| signingKey = E1E5C5047E630395FA7CD77C1510909663FDF2C0 | |
| [commit] | |
| gpgsign = true | |
| [pull] | |
| rebase = true | |
| [core] | |
| pager = delta | |
| [init] | |
| defaultbranch = main | |
| [diff] | |
| colorMoved = default | |
| [branch] | |
| autosetuprebase = always | |
| [filter "lfs"] | |
| clean = git-lfs clean -- %f | |
| smudge = git-lfs smudge -- %f | |
| process = git-lfs filter-process | |
| required = true | |
| [alias] | |
| count-lines-author = "! git log --author=\"$1\" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf \"added lines: %s, removed lines: %s, total lines: %s\\n\", add, subs, loc }' #" | |
| count-lines = "! git log | rg Author | sort -u | choose 1: | xargs -I % sh -c \"echo '%' && git count-lines-author '%' && echo\"" | |
| yeet-merged-branches = "! git branch -a --merged | rg '.*remotes/origin/([^ \t]*).*' -r '$1' | rg -v 'main' | xargs -I % git push origin :%" | |
| diffsplit = "! git diff | delta --side-by-side" | |
| change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f " | |
| [pretty] | |
| fancyoneline = format:%C(auto,yellow)%h%C(auto,magenta)% G? %C(auto,blue)%>(12,trunc)%ad %C(auto,green)%<(20,trunc)%aN%C(auto,reset)%s%C(auto,red)% gD% D | |
| # Git delta stuff | |
| [interactive] | |
| diffFilter = delta --color-only | |
| [delta] | |
| navigate = true | |
| [merge] | |
| conflictstyle = diff3 | |
| [diff] | |
| colorMoved = default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment