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