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