-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdot_gitconfig.tmpl
66 lines (47 loc) · 1.23 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
[user]
email = {{ .email | quote }}
name = {{ .name | quote }}
[github]
user = stuartcampbell
[alias]
update-submodules = submodule update --init --recursive
upgrade-submodules = submodule update --init --remote
# The missing command <3
unstage = reset HEAD --
# Undo modifications to a file
undo = checkout --
# Checkout shortcut
co = checkout
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
[branch]
# Always merge using rebase
autosetuprebase = always
[color]
ui = auto
{{- $ghPath := lookPath "gh" }}
{{- if $ghPath }}
[credential "https://github.com"]
helper = !{{ $ghPath }} auth git-credential
[credential "https://gist.github.com"]
helper = !{{ $ghPath }} auth git-credential
{{- end }}
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[fetch]
prune = true
[help]
# Suggest the correct command
autocorrect = 1
[init]
defaultBranch = main
[pull]
rebase = true
[push]
default = current
[status]
# Enable the submodule summary and show a summary of commits for modified submodules
submoduleSummary = true
{{/* vim: set filetype=gitconfig: */}}