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