[x] Various configuration
[mina86-dot-files.git] / git / config
blob3ad0f326d7b2bdc26cb53e1d60059f97e65fb34e
1 [color]
2         ui = auto
3 [color "diff"]
4         meta = yellow bold
5         frag = magenta bold
6         old = red bold
7         new = green bold
8         whitespace = red reverse
9 [color "status"]
10         added = green
11         changed = red
12         untracked = cyan
13 [color "interactive"]
14         prompt = yellow bold
15         help = cyan
16 [alias]
17         a      = am -3
18         b      = branch
19         br     = branch -v
20         ci     = "!f() { git commit ${1+-m} \"$@\"; }; f"
21         eci    = "!VISUAL=emacsclient git commit"
22         amend  = commit --amend
23         fix    = "!f() { if [ $# -eq 0 ]; then git commit --amend -C HEAD; else git commit --fixup \"$@\"; fi; }; f"
24         wip    = commit -m wip
25         co     = checkout
26         d      = diff -p --stat
27         ch     = diff -p --stat --cached
28         pick   = cherry-pick
29         rb     = rebase
30         rbi    = rebase -i
31         cont   = rebase --continue
32         ct     = rebase --continue
33         s      = status -uno
34         sh     = stash
35         pop    = stash pop
36         mt     = mergetool
37         sw     = show
38         l      = log --pretty=format:'%C(yellow)%h%C(white) %an <%ae> %>|(80)%ai%Creset%n%C(bold)%w(0,4,4)%s%C(reset)%n%+b'
39         ll     = log --stat
40         lg     = log
41         lp     = log -p
42         tip    = log -n1
43         k      = !gitk
44         edit   = "!f() { GIT_EDITOR='sed -i 1s/pick/edit/' git rebase -i \"$1\"~; }; f"
45         ed     = edit
46         sync   = remote update -p
47         patch  = "!f() { file=$1; shift; patch -p1 <$file \"$@\"; }; f"
48 [user]
49         name = Michal Nazarewicz
50         email = mina86@mina86.com
51 [core]
52         pager = less -FRSX
53 [push]
54         default = current
55 [rebase]
56         autosquash = yes
57 [interactive]
58         singleKey = yes
60 [url "github:"]
61         pushInsteadOf = git://github.com/
62         pushInsteadOf = https://github.com/
63 [url "mina86@git.sv.gnu.org:/srv/git/"]
64         pushInsteadOf = git://git.sv.gnu.org/
65 [url "ssh://mina86@git.code.sf.net/"]
66         pushInsteadOf = git://git.code.sf.net/
68 [sendemail]
69         from = Michal Nazarewicz <mina86@mina86.com>
70         confirm = always
71         aliasesfile = ~/.config/git/aliases
72         aliasfiletype = mutt
73         suppresscc = author
74         chainreplyto = no
76 [gui]
77         spellingdictionary = en_GB
78         gcwarning = false
80 [include]
81         path = ~/.config/git/local
83 [credential]
84         helper = netrc
86 [diff "lisp"]
87         xfuncname = "^(\\(.*)$"
88 [diff "texinfo"]
89         xfuncname = "^@node[ \t][ \t]*\\([^,][^,]*\\)"
90 [diff "image"]
91         binary = true
92         textconv = identify
93 [pack]
94         window = 50
95         depth = 250
96 [status]
97         showUntrackedFiles = no
98 [advice]
99         detachedHead = false
100         skippedCherryPicks = false
101 [init]
102         defaultBranch = master
103 [blame]
104         coloring = repeatedLines
105 [column]
106         ui = auto dense
107 [diff]
108         algorithm = minimal
109 [rerere]
110         enabled = true