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