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