Dotfiles/.gitconfig

32 lines
854 B
INI

[user]
name = Snoweuph
email = snow+git@euph.email
signingkey = 99ED4727EFBFF719
[commit]
gpgSign = true
[push]
autosetupremote = true
[help]
autoCorrect = prompt
[core]
editor = nvim
pager = delta
commentChar = ";"
[diff]
colorMoved = default
[fetch]
prune = true
prunetags = true
[alias]
adog ="!git-graph --model=trunk --color=always | LESS='-R' less"
fl = push --force-with-lease
prune-branches = "!git fetch -p && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs -r git branch -d"
show-last-commit = diff HEAD^
unstage = "restore --staged"
fame="!git ls-files | while read f; do git blame -w -C -M --line-porcelain -- \"$f\" | grep -I '^author '; done | sort -f | uniq -ic | sort -nr | { echo '----- hidden ---------------'; cat; } | column -t -l 3 -N LINES,hide,AUTHOR -H hide -o ' | '"