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