dotfiles/roles/git/files/config

83 lines
2.1 KiB
Text

# Color palette translation:
#
# Solarized Git/ANSI
# --------- --------
# base03 bold black
# base02 black
# base01 bold green
# base00 bold yellow
# base0 bold blue
# base1 bold cyan
# base2 white
# base3 bold white
# red red
# green green
# blue blue
# magenta magenta
# yellow yellow
# cyan cyan
# orange bold red
# violet bold magenta
[alias]
a = add
aa = add --all
b = branch
ba = branch --all
bav = branch --all --verbose
bd = branch --delete
cm = commit --verbose
co = checkout
cob = checkout -b
d = diff
dc = diff --cached
dt = difftool
ff = merge --ff-only
l = log --graph --format='%C(auto)%h%d %s %C(cyan)%ar'
ln = log --graph --format='%C(auto)%h%d %s %C(cyan)%ar %C(auto)by %C(bold magenta)%an <%ae>'
la = log --graph --format='%C(auto)%h%d %s %C(cyan)%ar' --all
lna = log --graph --format='%C(auto)%h%d %s %C(cyan)%ar %C(auto)by %C(bold magenta)%an <%ae>' --all
ll = log --graph --decorate --stat
lla = log --graph --decorate --stat --all
pom = push origin master
s = status --short
ss = status
sub = submodule
[core]
excludesfile = ~/.config/git/ignore
editor = vim
trustctime = false # http://www.git-tower.com/blog/make-git-rebase-safe-on-osx/
pager = less -F -X
[push]
default = nothing
[color]
ui = auto
[color "decorate"]
branch = blue
remoteBranch = bold red # orange
tag = green
stash = bold magenta
HEAD = cyan
[color "diff"]
meta = blue
frag = bold magenta # violet in solarized
old = red
new = green
[color "status"]
added = green
changed = red
untracked = cyan
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
[include]
path = ~/.config/git/config.local