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