config/git/config

46 lines
1.2 KiB
Plaintext

[user]
name = Charles Gould
useConfigOnly = true
[core]
autocrlf = input
editor = nvim
[alias]
aliases = config --get-regexp alias
branchsort = branch --sort='-committerdate' --format='%(HEAD) %(color:blue)%(committerdate:short)%(color:reset) %(if)%(worktreepath)%(then)%(color:reverse yellow)%(refname:short)%(color:reset)%(else)%(color:yellow)%(refname:short)%(color:reset)%(end) %(color:green)%(upstream:short)%(color:reset)'
can = commit --amend --no-edit
cand = commit --amend --no-edit --date=now
logsearch = log --color=always --format=tformat:'%C(blue)%cs%C(reset) %C(yellow)%h%C(reset) %C(normal)%s%C(reset)'
rbi = rebase --interactive
wipe = restore --staged --worktree
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "status"]
added = yellow
changed = green
untracked = cyan
[pull]
rebase = true
[push]
default = current
[log]
date = human
[stash]
showPatch = true
showStat = true