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" +