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