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