-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
147 lines (131 loc) · 3.86 KB
/
gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[user]
name = Marten Veldthuis
email = [email protected]
signingkey = 03C0DA07
[branch]
autosetuprebase = always
[color]
ui = auto
[cola]
savewindowsettings = true
fontui = Bitstream Vera Sans Mono,8,-1,5,50,0,0,0,0,0
fontdiff = Bitstream Vera Sans Mono,8,-1,5,50,0,0,0,0,0
geometry = 1680x973+1280,49
[giggle]
compact-mode = true
main-window-maximized = true
main-window-geometry = 1072x947+0+25
main-window-view = HistoryView
file-view-hpane-position = 274
history-view-vpane-position = 409
file-view-vpane-position = 533
[push]
default = simple
recurseSubmodules = check
[alias]
ci = commit ; this stuff is just shorter
st = status --short
co = checkout
di = diff
dc = diff --cached
aa = add --all
amend = commit --amend
div = divergence ; git-divergence is a ~/bin script
ff = merge --ff-only ; if you want to make sure it won't create a merge commit
noff = merge --no-ff ; if you want to make sure it does create a merge commit
sha = log -1 --pretty=format:%H ; the sha1 of the latest commit
standup = log --since '1 day ago' --oneline --author=Marten
; typos
puhs = push
; stolen from https://github.com/garybernhardt/dotfiles/blob/master/.gitconfig
l = log --graph --abbrev-commit --date=relative
la = !git l --all
;head = !git l -1
h = !git head
r = !git --no-pager l -20
ra = !git r --all
; stolen from https://github.com/garybernhardt/dotfiles/blob/master/.gitconfig
[format]
pretty=format:%C(yellow)%h %Cgreen(%ad) %C(red)%d%Creset %s %C(bold blue)<%an>%Creset
[github]
user = marten
site = https://github.com
endpoint = https://api.github.com
oauth-token-file = /Users/marten/.github-oauth-token
[core]
excludesfile = /Users/marten/.gitignore_global
quotepath = false
pager = less -S
[credential]
helper = cache --timeout=3600
[merge]
tool = nvimdiff4
[mergetool]
keepBackup = true
prompt = false
[mergetool "threesome"]
cmd = "vim -f $BASE $LOCAL $REMOTE $MERGED -c 'ThreesomeInit'"
trustExitCode = true
[mergetool "unityyamlmerge"]
trustExitCode = false
cmd = /Applications/Unity/Unity.app/Contents/Tools/UnityYAMLMerge merge -p "$BASE" "$REMOTE" "$LOCAL" "$MERGED"
[mergetool "opendiff"]
cmd = opendiff
[mergetool "nvimdiff4"]
cmd = nvim -d $LOCAL $BASE $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[mergetool "nfugitive"]
cmd = nvim -f -c "Gdiff" "$MERGED"
[mergetool "ksdiff"]
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
trustExitCode = true
[mergetool "sourcetree"]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[diff]
tool = nvimdiff2
guitool = kitty.gui
submodule = log
[difftool]
prompt = false
trustExitCode = true
[difftool "ksdiff"]
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[difftool "nvimdiff2"]
cmd = nvim -d $LOCAL $REMOTE
[difftool "kitty"]
cmd = kitty +kitten diff $LOCAL $REMOTE
[difftool "kitty.gui"]
cmd = kitty kitty +kitten diff $LOCAL $REMOTE
[git-up "rebase"]
log-hook = "echo \"CHANGES FOR $1\"; git log $1..$2"
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
;[pager]
;diff = diff-highlight | less -S
;show = diff-highlight | less -S
;log = diff-highlight | less -S
[vain]
default = c0de
[status]
submodulesummary = 1
[commit]
verbose = true
template = /Users/marten/.stCommitMsg
[gpg]
program = /usr/local/bin/gpg
[init]
defaultBranch = main