-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdot_gitconfig.tmpl
52 lines (51 loc) · 996 Bytes
/
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
# vim: ft=gitconfig
[user]
name = Fran Casas
email = [email protected]
[color]
diff = auto
status = auto
branch = auto
[core]
excludesfile = ~/.gitignore
autocrlf = input
editor = nvim
[merge]
tool = vimdiff
[mergetool]
prompt = true
[mergetool "vimdiff"]
cmd = nvim -d $LOCAL $REMOTE $MERGED
[difftool]
prompt = false
[diff]
tool = vimdiff
[apply]
whitespace = fix
[format]
pretty = %Cred%h%Creset - %s%nby %C(bold blue)%an <%ae>%Creset %C(yellow)%d%Creset%non %Cgreen(%cD)%n%b
[alias]
amend = commit --amend --no-edit
co = checkout
l = ll -n 10
ll = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)'
lll = log --graph
s = status --short -b
last = diff HEAD~1
wtf = log -p --word-diff
[push]
default = current
[rebase]
autosquash = true
[rerere]
enabled = true
[include]
path = ~/.gitconfig_local
[init]
defaultBranch = main
[github]
user = franciscoj
{{if (eq .chezmoi.os "darwin") -}}
[credential]
helper = osxkeychain
{{ end -}}