-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
117 lines (96 loc) · 2.31 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
# -*- mode: conf-unix-mode; indent-tabs-mode: t; tab-width: 4; -*-
[init]
defaultBranch = main
[user]
name = Ross Timson
email = [email protected]
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFLG4jA01/e+2YsYsRVkwsimmDKwCu6oZUTGo79sSZm5
# Conditionally set work email when in work dir.
[includeIf "gitdir:~/code/work/"]
path = ~/.gitconfig-work
[github]
user = rosstimson
[core]
attributesfile = ~/.gitattributes
excludesfile = ~/.gitignore-global
autocrlf = input
editor = emacsclient -t -a=
[pager]
diff = delta
log = delta
reflog = delta
show = delta
# https://github.com/dandavison/delta
[delta]
line-numbers = true
navigate = true
# side-by-side = true
syntax-theme = GitHub
[branch]
autoSetupMerge = simple
[pull]
ff = only
[push]
default = simple
followTags = true
autoSetupRemote = true
[remote]
pushdefault = origin
[commit]
gpgsign = true
[diff]
tool = Kaleidoscope
[difftool "Kaleidoscope"]
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[merge]
conflictstyle = diff3
tool = Kaleidoscope
[mergetool "Kaleidoscope"]
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
trustExitCode = true
[mergetool]
prompt = false
[gpg]
format = ssh
[gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
[alias]
a = add
b = branch
bl = blame
c = commit -v
cl = clone
co = checkout
com= checkout main
cp= cherry-pick
d = diff
ds = diff --staged
dt = difftool
f = fetch
i = init
l = pull
last = log -1 HEAD
lg = !"git lg1"
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(blue)%h%C(reset) - %C(green)(%ar)%C(reset) %C(black)%s%C(reset) %C(magenta)- %an%C(reset)%C(yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(blue)%h%C(reset) - %C(cyan)%aD%C(reset) %C(green)(%ar)%C(reset)%C(yellow)%d%C(reset)%n'' %C(black)%s%C(reset) %C(magenta)- %an%C(reset)' --all
lr = pull --rebase
m = merge
mt = mergetool --no-prompt
p = push
prune = fetch --prune
r = remote
rb = rebase
re = restore
rs = reset
rv = revert
s = status
sh = show
st = stash
stash-all = stash save --include-untracked
std = stash show -p
sw = switch
t = tag
undo = reset --soft HEAD^
unstage = reset HEAD --