-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_gitconfig.tmpl
105 lines (96 loc) · 2.4 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
[user]
name = {{ .name }}
email = {{ .email }}
#signingkey = CE1CF90A
signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKEcl1fnXIV3u0Q8E1rT6FsalcEGV+pLi44gqthZEq4e [email protected]"
[core]
autocrlf = false
safecrlf = true
excludesfile = ~/.gitignore_global
editor = code -w
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
#lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
type = cat-file -t
dump = cat-file -p
staged = diff --staged
unstage = reset HEAD --
last = log -1 HEAD
pushall = push --recurse-submodules=on-demand
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"
# https://golang.org/doc/contribute.html
change = codereview change
gofmt = codereview gofmt
mail = codereview mail
pending = codereview pending
submit = codereview submit
sync = codereview sync
[color]
ui = true
log = auto
branch = auto
diff = auto
status = auto
[merge]
keepBackup = false;
[push]
current = default
default = current
[github]
user = hilli
[credential]
{{- if (eq .chezmoi.os "darwin") }}
# helper = osxkeychain
helper = /usr/local/share/gcm-core/git-credential-manager
{{- end }}
[branch]
autosetuprebase = always
[commit]
gpgsign = true
verbose = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[gpg]
format = ssh
#format = x509 # GPG
[gpg "ssh"]
allowedSignersFile = ~/.ssh/allowed_signers
[tag]
gpgsign = true
[init]
defaultBranch = main
[rebase]
autosquash = true
autostash = true
[remote "origin"]
prune = true
[receive]
fsckobjects = true
[pull]
default = current
rebase = false
[push]
default = simple
autoSetupRemote = true
[credential "https://dev.azure.com"]
useHttpPath = true
[diff "ansible-vault"]
textconv = ansible-vault view
cachetextconv = false
[transfer]
fsckobjects = true
[scalar]
repo = /Users/hilli/github/github
repo = /Users/hilli/github/codespaces-base
[maintenance]
repo = /Users/hilli/github/github
repo = /Users/hilli/github/codespaces-base
# vim: set filetype=gitconfig: