-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
102 lines (102 loc) · 2.29 KB
/
Copy pathdot_gitconfig.tmpl
File metadata and controls
102 lines (102 loc) · 2.29 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
93
94
95
96
97
98
99
100
101
102
[user]
email = {{ .personal_email | quote }}
name = {{ .full_name | quote }}
{{ if .has_work_profile -}}
[includeIf "gitdir:{{ .work_project_folder }}/"]
path = .gitconfig.work
{{- end }}
[credential]
{{ if eq .chezmoi.os "darwin" -}}
helper = osxkeychain
{{ else -}}
helper = cache
{{- end }}
[difftool "diffmerge"]
cmd = diffmerge $LOCAL $REMOTE
[interactive]
diffFilter = delta --color-only --features=interactive
[alias]
co = checkout
count = shortlog -sn
g = grep --break --heading --line-number
gi = grep --break --heading --line-number -i
changed = show --pretty=\"format:\" --name-only
fm = fetch-merge
pr = open-pr
please = push --force-with-lease
commend = commit --amend --no-edit
fpr = fetch-pr
lt = log --tags --decorate --simplify-by-decoration --oneline
[core]
excludesfile = ~/.gitignore
editor = vim
compression = -1
autocrlf = input
whitespace = trailing-space,space-before-tab
precomposeunicode = true
pager = delta
# Use a cache and monitoring process for each repo instead of
# crawling all files for every operation.
fsmonitor = true
untrackedCache = true
[column]
ui = auto
[branch]
sort = -committerdate
[tag]
sort = version:refname
[init]
defaultBranch = main
[fetch]
prune = true
pruneTags = true
all = true
[rerere]
enabled = true
autoupdate = true
[rebase]
autoSquash = true
autoStash = true
updateRefs = true
[pull]
rebase = true
[push]
default = simple
autoSetupRemote = true
followTags = true
[apply]
whitespace = nowarn
[help]
autocorrect = prompt
[merge]
tool = diffmerge
conflictstyle = zdiff3
[mergetool "diffmerge"]
cmd = diffmerge --merge --result=$MERGED $LOCAL $BASE $REMOTE
trustExitCode = true
keepBackup = false
[diff]
tool = diffmerge
colorMoved = plain
algorithm = histogram
mnemonicPrefix = true
renames = true
[difftool]
prompt = false
[grep]
extendRegexp = true
lineNumber = true
[submodule]
fetchJobs = 4
[commit]
verbose = true
template = ~/.dotfiles/git/template.txt
[log]
showSignature = false
[delta]
navigate = true # use n and N to move between diff sections
#light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
line-numbers = true
side-by-side = false
hyperlinks = true
hyperlinks-file-link-format = "file-line://{path}:{line}"