]> git.netwichtig.de Git - user/henk/vcsh/git.git/blob - .config/git/config
Fix typo
[user/henk/vcsh/git.git] / .config / git / config
1 [user]
2   name = Hendrik Jäger
3   email = gitcommit@henk.geekmail.org
4   signingKey = 0x1B7EADFDDF720123
5
6 [branch]
7   # always make new branches rebase on their tracking branch
8   autosetuprebase = always
9 [commit]
10   # show diff in commit message editor
11   verbose = true
12 [core]
13   # complain about tabs used for indenting
14   whitespace = tab-in-indent
15 [diff]
16   # use (i)ndex, (w)orktree, (c)ommit, etc instead of a/ and b/
17   mnemonicprefix = true
18   # detect renames and copies
19   renames = copies
20   # use different color for moved code (default == zebra, currently)
21   colorMoved = default
22   # use vimdiff as difftool
23   tool = vimdiff
24 [difftool]
25   # do not prompt before invoking difftool
26   prompt = false
27 [fetch]
28   # delete tracking references and info about remote branches
29   # does not delete any branches
30   prune = true
31 [format]
32   # show a lot of info by default
33   pretty=compact
34 [grep]
35   # show linenumber (-n)
36   lineNumber = true
37 [log]
38   # show short commit sha
39   abbrevCommit = true
40   # show short ref names but only in terminal
41   decorate = auto
42 [merge]
43   # only do fastforward merges
44   ff = only
45   # use vimdiff as mergetool
46   tool = vimdiff
47 [pretty]
48   compact = %C(auto)%h%Cgreen% cs%Cblue%<(15,trunc)% an%C(auto)%d%Creset% s
49 [push]
50   # push to branch with same name on remote
51   default = current
52   # also push reachable annotated tags
53   followTags = true
54 [pull]
55   # rebase, don’t merge, local changes
56   rebase = true
57   # only accept fastforwards by default
58   ff = only
59 [rebase]
60   # when in a dirty worktree, automatically create a stash before and apply after rebasing
61   autoStash = true
62   # automatically squash marked commits (squash! …, fixup! …)
63   autoSquash = true
64 [rerere]
65   # don’t use rerere to resolve merge conflicts
66   enabled = false
67
68 [alias]
69   a  = add
70   aa = add --all
71   ai = add --interactive
72   ap = add --patch
73   au = add --update
74
75   b      = branch
76   br     = branch
77   bra    = branch --all
78
79   co  = checkout
80   cob = checkout -b
81
82   cp  = cherry-pick
83   cpa = cherry-pick --abort
84   cpc = cherry-pick --continue
85
86   c     = commit
87   ca    = commit --all
88   cm    = commit --message
89   cam   = commit --all --message
90   fix   = commit --all --fixup
91
92   diff  = diff --word-diff
93   d     = diff --word-diff
94   dc    = diff --cached
95   dlc   = diff --cached HEAD^
96   ds    = diff --staged
97   dr    = "!f() { git diff -w "$1"^.."$1"; }; f"
98   diffr = "!f() { git diff "$1"^.."$1"; }; f"
99
100   # grep on filename
101   f = "!git ls-files | grep -i"
102
103   g    = grep -Ii
104   gr   = grep -Ii
105   grep = grep -Ii
106
107   l       = log
108   la      = log --graph --all
109   lp      = log --patch
110   # tag logs
111   taglog = "log --tags --simplify-by-decoration --pretty='format:%ci %d'"
112
113   pl  = pull
114   pla = pull --all
115
116   ps     = push
117   please = push --force-with-lease
118
119   rem  = remote
120   remp = remote prune
121   remu = remote update
122
123   rb  = rebase
124   rba = rebase --abort
125   rbc = rebase --continue
126   rbi = rebase --interactive
127
128   r   = reset
129   r1  = reset HEAD^
130   r2  = reset HEAD^^
131   rh  = reset --hard
132   rh1 = reset --hard HEAD^
133   rh2 = reset --hard HEAD^^
134
135   rs = restore
136
137   sl = stash list
138   sa = stash apply
139   ss = stash save
140
141   st = status --short
142
143   sw = switch
144
145   # add subtree
146   sba = "!f() { git subtree add --prefix $2 $1 master --squash; }; f"
147   # update/pull subtree
148   sbu = "!f() { git subtree pull --prefix $2 $1 master --squash; }; f"
149
150   # initial empty commit
151   empty = "!git commit -am\"[empty] Initial commit\" --allow-empty"
152
153   wl = worktree list
154
155   serve = daemon --reuseaddr --verbose --base-path=. --export-all ./.git