Skip to content

Commit

Permalink
add new git configuration
Browse files Browse the repository at this point in the history
add diff color option
strike and italic with color!
  • Loading branch information
jays1204 committed Sep 3, 2016
1 parent aa6f781 commit 8f6abf3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -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 = [email protected]
name = jays
email = [email protected]
[core]
editor = vim
editor = vim

[color "diff"]
old = red strike
new = green italic
3 changes: 3 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Requirements

- minimum git version : 2.10

0 comments on commit 8f6abf3

Please sign in to comment.