-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
114 lines (112 loc) · 3.01 KB
/
dot_gitconfig.tmpl
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
[user]
name = {{ .name }}
email = {{ .email }}
signingkey = {{ .signingkey }}
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = auto
[diff]
renames = true
guitool = vscode
[core]
excludesfile = {{ .chezmoi.homeDir }}/.gitignore_global
pager = less -FXRS -x2
[alias]
st = status
di = diff
co = checkout
ci = commit
br = branch
sta = stash
llog = log --date=local
flog = log --pretty=fuller --decorate
lg = log --graph --abbrev-commit --date=relative --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
lol = log --graph --decorate --oneline --abbrev-commit
lola = log --graph --decorate --oneline --all --abbrev-commit
logg = log --graph --decorate --all
blog = log origin/master... --left-right
credit = blame --color-lines -w -C -C -C
ds = diff --staged
dw = diff --word-diff
ls = ls-files
l = log --pretty=oneline --abbrev-commit
fixup = commit --fixup
squash = commit --squash
unstage = reset HEAD
rum = rebase master@{u}
lgs = log --graph --pretty=format:'%C(auto)%h - %Cgreen(sig: %G?)%Creset -%d %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n%>|(10)%C(green)\\%Creset%n%>|(11)%C(green)gpg: Key ID %GK%Creset%n%C(green)%>|(250)%GG%Creset' --abbrev-commit
oldest-ancestor = !bash -c \"diff -u <(git rev-list --first-parent \\\"${1:-master}\\\") <(git rev-list --first-parent \\\"${2:-HEAD}\\\") | sed -ne 's/^ //p' | head -1\"
unstage-all = reset HEAD --
changes = diff --name-status -r
svn-switch = config svn-remote.svn.url
sw = config svn-remote.svn.url
[apply]
whitespace = nowarn
[branch]
autosetupmerge = true
sort = -committerdate
[rebase]
autosquash = true
{{- if eq .chezmoi.os "darwin" }}
# MacOS Specific version
[merge]
tool = meld
{{ else }}
[merge]
tool = vscode
{{ end -}}
[mergetool "meld"]
cmd = meld $BASE $LOCAL $REMOTE --output $MERGED
[mergetool "vscode"]
cmd = code --reuse-window --wait --diff $BASE $LOCAL $REMOTE $MERGED
[difftool "vscode"]
cmd = code --reuse-window --wait --diff $BASE $LOCAL $REMOTE
[push]
default = simple
autoSetupRemote = true
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[commit]
gpgsign = true
[gpg]
program = gpg2
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[bash-it]
hide-status = 1
[url "[email protected]:"]
insteadOf = https://github.com/
[url "git+ssh://{{ .launchpaduser }}@git.launchpad.net/"]
insteadof = lp:
[merge]
guitool = meld
[pull]
rebase = false
[init]
defaultBranch = main
[safe]
directory = /opt/flutter
[interactive]
diffFilter = delta --color-only --line-numbers
[delta]
features = Matcha-Dark-Theme zebra-dark
[delta "Matcha-Dark-Theme"]
syntax-theme = Matcha-Dark
minus-style = syntax "#641f39"
minus-emph-style = syntax bold "#902c29"
plus-emph-style = "#9fca56" bold "#295738"
plus-style = syntax "#123730"
keep-plus-minus-markers = true
[maintenance]
repo = {{ .chezmoi.homeDir }}/.local/share/chezmoi
[fetch]
writeCommitGraph = true
[hub]
protocol = ssh