dotfiles/dot_gitconfig

96 lines
2.5 KiB
Plaintext
Raw Normal View History

2021-04-12 21:55:22 -04:00
[push]
default = simple
[user]
name = Andrew Coleman
email = penguincoder@gmail.com
[advice]
detachedHead = false
[core]
filemode = true
eol = lf
autocrlf = input
pager = delta
[init]
defaultBranch = main
[delta]
features = decorations hoopoe
2021-04-12 21:55:22 -04:00
line-numbers = true
#syntax-theme = Solarized (light)
[delta "hoopoe"]
# author: https://github.com/dandavison
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax
light = true
minus-emph-style = normal "#ffc0c0"
minus-empty-line-marker-style = normal "#ffe0e0"
minus-non-emph-style = normal "#ffe0e0"
minus-style = normal "#ffe0e0"
plus-emph-style = syntax "#a0efa0"
plus-empty-line-marker-style = normal "#d0ffd0"
plus-non-emph-style = syntax "#d0ffd0"
plus-style = syntax "#d0ffd0"
syntax-theme = GitHub
zero-style = syntax
2021-04-12 21:55:22 -04:00
[delta "decorations"]
#commit-decoration-style = bold yellow box
#file-style = bold blue
file-decoration-style = blue ol
2021-04-12 21:55:22 -04:00
hunk-header-style = omit
[rebase]
autoStash = true
[merge]
tool = vimdiff
conflictstyle = diff3
prompt = false
[pull]
rebase = true
[color]
branch = auto
diff = auto
status = auto
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = red
[alias]
logp = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
lg = log --graph --date-order --first-parent \
--pretty=format:'%C(auto)%h%Creset %C(auto)%d%Creset %s %C(green)(%ad) %C(bold cyan)<%an>%Creset'
lgb = log --graph --date-order --branches --first-parent \
--pretty=format:'%C(auto)%h%Creset %C(auto)%d%Creset %s %C(green)(%ad) %C(bold cyan)<%an>%Creset'
lga = log --graph --date-order --all \
--pretty=format:'%C(auto)%h%Creset %C(auto)%d%Creset %s %C(green)(%ad) %C(bold cyan)<%an>%Creset'
up = pull --rebase
branches-last-updated = branch -rv --sort=committerdate --format='%(HEAD) %(color:green)%(committerdate:relative)%(color:reset)\t%(color:magenta)%(authorname)%(color:reset)\t%(color:yellow)%(refname:short)%(color:reset)'
# gone = ! "git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D"