added git simple config

This commit is contained in:
motius 2017-08-17 09:25:12 +02:00
parent fffa46fa6a
commit e5ee039774
1 changed files with 18 additions and 0 deletions

18
git/gitconfig Normal file
View File

@ -0,0 +1,18 @@
[color]
status=always
diff=always
[alias]
co = checkout
ci = commit
st = status
sti = status --ignored
br = branch
ll = log --graph --stat --decorate
di = diff
ca = diff --cached
ch = diff --stat
dif = !( GIT_PAGER=cat git diff --color=always --stat && echo && GIT_PAGER=cat git diff --color=always) | less -R
old = "!f() { git blame \"$1\" | sort -k3,4 | less -R; }; f"
m = "!f() { (GIT_PAGER=cat git status ; GIT_PAGER=cat git diff --cached --stat ; GIT_PAGER=cat git diff --stat) | less -R;}; f"