Add aliases & color settings

master
Hektor Misplon 2020-02-18 19:16:16 +00:00
parent cb8190907b
commit 1f47f9070f
1 changed files with 44 additions and 2 deletions

View File

@ -1,9 +1,51 @@
[core] [core]
editor = vim editor = vim
excludesfile = ~/.gitignore
[user] [user]
email = hektor.misplon@gmail.com email = hektor.misplon@gmail.com
name = Hektor Misplon name = Hektor Misplon
username = hektormisplon
[alias]
d = diff
ds = diff --stat
dc = diff --cached
a = add
ap = add -p
cm = commit -m
cam = commit -a -m
l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
s = status -s
co = checkout
cob = checkout -b
la = "!git config -l | grep alias | cut -c 7-"
[color]
ui = auto
[color "diff"]
meta = yellow bold
commit = green bold
frag = magenta 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 "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
excludesfile = ~/.gitignore