From 038376c1a40d223f4895789449fce1f8ddd6d4a4 Mon Sep 17 00:00:00 2001 From: nojhan Date: Tue, 12 Mar 2013 11:26:31 +0100 Subject: [PATCH] Add .gitconfig, with aliases and pager config The pager config colors the diff and use less as a pager, After having called "git diff", you just will just have to type 'n' to iterate over diff sections. --- .gitconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitconfig diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..8c2e14e --- /dev/null +++ b/.gitconfig @@ -0,0 +1,20 @@ +[user] + name = nojhan + email = nojhan@nojhan.net +[alias] + up = pull origin + st = status + di = diff + co = checkout + # create branch + cb = checkout -b + ci = commit + br = branch + sta = stash +[core] + # color the diff, use less as pager + # -R is necessary to display colors in less + # the '+' calls a command at start, that will jump to the first diff section + # then, you just have to type 'n' to iterate over diff sections + pager = colordiff | less -R +'/-{3}' +