-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
47 lines (46 loc) · 1.24 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
{{- if not .codespaces -}}
[user]
name = Mike Kasberg
email = {{ .email }}
[core]
# Use Notepad++
#editor = 'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession
# Use emacs, no window
#editor = emacs -nw
# Use Vim
editor = vi
excludesfile = ~/.gitignore_global
[color]
ui = auto
[diff]
tool = meld
[merge]
tool = meld
conflictstyle = diff3
[mergetool "meld"]
path = /usr/bin/meld
[push]
default = simple
[rebase]
stat = true
[branch]
autosetuprebase = always
[url "[email protected]:mkasberg/"]
insteadOf = https://github.com/mkasberg/
[alias]
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
pushfor = !sh -c 'git push origin HEAD:refs/for/$1' -
my-next = rev-list origin/master ^origin/master.rc [email protected] --pretty
my-rc = rev-list origin/master.rc ^origin/master [email protected] --pretty
my-master = rev-list origin/master [email protected] --pretty --after=\"14 days ago\"
show-rc = rev-list origin/master.rc ^origin/master --pretty
show-next = rev-list origin/master ^origin/master.rc --pretty
type = cat-file -t
dump = cat-file -p
[commit]
template = ~/.gittemplate
[pull]
rebase = true
[init]
defaultBranch = main
{{ end -}}