3 email = gitcommit@henk.geekmail.org
4 signingKey = 0x1B7EADFDDF720123
7 # always make new branches rebase on their tracking branch
8 autosetuprebase = always
10 # show diff in commit message editor
13 # complain about tabs used for indenting
14 # commented because I switched to tabs
15 # and yaml can’t use tabs
16 # so either variant will complain
17 # whitespace = tab-in-indent
19 # use (i)ndex, (w)orktree, (c)ommit, etc instead of a/ and b/
21 # detect renames and copies
23 # use different color for moved code (default == zebra, currently)
25 # use vimdiff as difftool
28 # do not prompt before invoking difftool
31 # delete tracking references and info about remote branches
32 # does not delete any branches
35 # show a lot of info by default
38 # show linenumber (-n)
41 # show short commit sha
43 # show short ref names but only in terminal
46 # use vimdiff as mergetool
49 compact = %C(auto)%h%Cgreen% cs%Cblue%<(15,trunc)% an%C(auto)%d%Creset% s
51 # push to branch with same name on remote
53 # also push reachable annotated tags
56 # rebase, don’t merge, local changes
58 # only accept fastforwards by default
61 # when in a dirty worktree, automatically create a stash before and apply after rebasing
63 # automatically squash marked commits (squash! …, fixup! …)
66 # don’t use rerere to resolve merge conflicts
72 ai = add --interactive
79 brav = branch --all --verbose --verbose
84 cpa = cherry-pick --abort
85 cpc = cherry-pick --continue
90 cam = commit --all --message
91 fix = commit --all --fixup
95 dlc = diff --cached HEAD^
97 dr = "!f() { git diff -w "$1"^.."$1"; }; f"
98 diffr = "!f() { git diff "$1"^.."$1"; }; f"
101 f = "!git ls-files | grep -i"
105 gra = "!sh -c 'git grep "$0" "$@" "$(git for-each-ref --format=\"%(refname)\"" refs/)'"
110 la = log --graph --all
111 lap = log --graph --all --patch
115 taglog = "log --tags --simplify-by-decoration --pretty='format:%ci %d'"
121 please = push --force-with-lease
127 frbp = "!f() { git fetch; git rebase "$1"; git push --force-with-lease; }; f"
130 rbc = rebase --continue
131 rbi = rebase --interactive
137 rh1 = reset --hard HEAD^
138 rh2 = reset --hard HEAD^^
150 swc = switch --create
153 sba = "!f() { git subtree add --prefix $2 $1 master --squash; }; f"
154 # update/pull subtree
155 sbu = "!f() { git subtree pull --prefix $2 $1 master --squash; }; f"
157 # initial empty commit
158 empty = "!git commit -am\"[empty] Initial commit\" --allow-empty"
162 serve = daemon --reuseaddr --verbose --base-path=. --export-all ./.git