-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
92 lines (92 loc) · 2.13 KB
/
dot_gitconfig.tmpl
File metadata and controls
92 lines (92 loc) · 2.13 KB
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
[user]
email = pcreighton429@gmail.com
name = Patrick Creighton
[push]
autoSetupRemote = true
[pull]
rebase = false
[fetch]
prune = true
[core]
editor = vim
pager = delta
{{- if eq .chezmoi.os "windows" }}
autocrlf = true
{{- else }}
autocrlf = input
{{- end }}
[interactive]
diffFilter = delta --color-only --features=interactive
[delta]
features = decorations
navigate = true # use n and N to move between diff sections
line-numbers = true
light = false
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax
[diff]
colorMoved = default
[init]
defaultBranch = main
[rebase]
autoStash = true
[log]
date = local
[alias]
# from https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git
a = add
au = add --update
b = branch
bD = branch --delete --force
cl = clone --recurse-submodules
cmsg = commit --verbose --message
d = diff
dca = diff --cached
l = pull
lr = pull --rebase
lg = log --stat
lgo = log --oneline
ma = merge --abort
p = push
pf = push --force
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbi = rebase --interactive
ra = remote add
rv = remote --verbose
rrm = remote remove
rh = reset
rhh = reset --hard
rs = restore
rst = restore --staged
rm = rm
rmc = rm --cached
sta = stash push
std = stash drop
stl = stash list
stp = stash pop
st = status
su = submodule update
sw = switch
swc = switch --create
wt = worktree
wtls = worktree list
wtmv = worktree move
wtrm = worktree remove
# from myself or tweaked from ohmyzsh
c = commit --verbose --no-edit
cna = commit --verbose --no-edit --amend
psup = push --set-upstream origin
rbm = rebase main
rbom = rebase origin/main
rhs = reset --soft
swm = switch main