From e5ee03977467e9e91694fec0ab1bceb872880027 Mon Sep 17 00:00:00 2001 From: motius Date: Thu, 17 Aug 2017 09:25:12 +0200 Subject: [PATCH] added git simple config --- git/gitconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 git/gitconfig diff --git a/git/gitconfig b/git/gitconfig new file mode 100644 index 0000000..d0aac3e --- /dev/null +++ b/git/gitconfig @@ -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" +