From 8f6abf3e7715f8e147e29b92a8cdfc07d6bd85dd Mon Sep 17 00:00:00 2001 From: jays Date: Sun, 4 Sep 2016 02:21:43 +0900 Subject: [PATCH] add new git configuration add diff color option strike and italic with color! --- .gitconfig | 20 ++++++++++++-------- Readme.md | 3 +++ 2 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 Readme.md diff --git a/.gitconfig b/.gitconfig index 5585fd2..ec496c1 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,11 +1,15 @@ [alias] - graph = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --decorate - chk = checkout - st = status - stat = log --since=1.weeks --author=jays --oneline - diff = diff --color-words + graph = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --decorate + chk = checkout + st = status + stat = log --since=1.weeks --author=jays --oneline + diff = diff --color-words [user] - name = jays - email = realjays1204@gmail.com + name = jays + email = realjays1204@gmail.com [core] - editor = vim + editor = vim + +[color "diff"] + old = red strike + new = green italic diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..9b5ea69 --- /dev/null +++ b/Readme.md @@ -0,0 +1,3 @@ +# Requirements + +- minimum git version : 2.10