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