]> git.phdru.name Git - dotfiles.git/blob - .gitconfig
.gitconfig: add diff aliases
[dotfiles.git] / .gitconfig
1 [alias]
2         amend = commit --amend -C HEAD
3         b = branch
4         checkin = commit
5         ca = commit --amend
6         ci = commit
7         co = checkout
8         d = diff
9         dc = diff --cached
10         lg = log --decorate --graph
11         lg1 = log --decorate --graph --oneline
12         lg5 = log --decorate --graph -5
13         st = status --short
14         stb = status --short --branch
15         wdiff = diff --word-diff
16
17 [color]
18         ui = auto
19
20 # Adapted from http://shallowsky.com/blog/programming/gitcolors.html
21 # and http://www.ansdb.com/649-git-colors-for-light-background
22 [color "branch"]
23 #       -- default --
24 #       current = green
25 #       local = normal
26 #       plain = normal
27 #       remote = magenta
28 #       -- light bg --
29         current = blue
30         local = normal
31         plain = normal
32         remote = magenta
33         upstream = normal
34 [color "diff"]
35 #       -- default --
36 #       commit = bold yellow
37 #       frag = cyan
38 #       meta = cyan
39 #       new = green
40 #       old = magenta
41 #       plain = normal
42 #       whitespace = normal red
43 #       -- light bg --
44         commit = normal bold
45         frag = cyan
46         meta = bold
47         new = blue
48         old = magenta
49         plain = normal
50         whitespace = normal red
51 #[color "grep"]
52 #       -- default --
53 #       match = normal
54 [color "decorate"]
55 #       -- light bg --
56         HEAD = blue
57         tag = blue
58 #[color "interactive"]
59 #       -- default --
60 #       error = normal
61 #       header = normal
62 #       help = normal
63 #       prompt = normal
64 [color "status"]
65 #       -- default --
66 #       added = cyan
67 #       changed = magenta
68 #       header = normal
69 #       nobranch = red
70 #       untracked = red
71 #       updated = green
72 #       -- light bg --
73         added = blue
74         changed = blue
75         header = normal
76         nobranch = red
77         untracked = red
78         updated = magenta
79
80 [core]
81         pager = less -FRSXgimq
82
83 [merge]
84         tool = vimdiff
85
86 #[mergetool "vimdiff3"]
87 # Don't forget to add -f for gvim
88 # 3 way diffs
89 #       cmd = vim -d \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" -c \"wincmd J\"
90
91 [receive]
92         denyNonFastForwards = true
93
94 [web]
95         browser = webbrowser
96
97 [browser "webbrowser"]
98         cmd = webbrowser -n
99
100 [gui]
101         fontui = -family \"DejaVu Sans\" -size 18 -weight normal -slant roman -underline 0 -overstrike 0
102         fontdiff = -family \"DejaVu Sans Mono\" -size 18 -weight normal -slant roman -underline 0 -overstrike 0