-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
83 lines (72 loc) · 1.67 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
[core]
excludesfile = ~/.gitignore
editor = code --wait
pager = less -F -X
hooksPath = /home/albert/.git-hooks
[user]
name = Albert Callarisa
email = {{ .email }}
{{- if eq .email "[email protected]" }}
signingkey = C6C5296935AC9D26
{{- end }}
{{- if eq .email "[email protected]" }}
[commit]
gpgsign = true
{{- end }}
[alias]
st = status -bs
pr = pull --rebase
car = commit --amend --reset-author
ci= commit
co= checkout
l=log --graph --pretty=format:'%Cgreen%h%Cblue%d%Creset %s %Cred%an%Creset'
hub = "!f(){ open `git remote -v | awk '/fetch/{print $2}' | sed -Ee 's#(git@|git://)#http://#' -e 's@com:@com/@'`| head -n1; }; f"
[pull]
rebase = false
[push]
default = current
autoSetupRemote = true
[apply]
whitespace = warn
[color]
diff = auto
status = auto
branch = auto
ui = always
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[gc]
auto = 1
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
[color "diff"]
meta = yellow bold
commit = green bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = "red bold 52"
newNormal = "green bold"
newHighlight = "green bold 22"
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[url "[email protected]:"]
insteadOf = https://github.com/