-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
78 lines (63 loc) · 2.11 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
[user]
name = {{ .git.name | quote }}
email = {{ .git.email | quote }}
[init]
defaultBranch = main
[safe]
# Use this to suppress the git warning when the uid of the files are different than the uid of the user.
#directory = /path/to/safe/repository
[fetch]
# Remove any remote-tracking references that no longer exist on the remote.
# https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---prune
prune = true
[push]
# https://git-scm.com/docs/git-push#Documentation/git-push.txt-pushdefault
default = simple
[pull]
# Use rebase instead of merge when pulling code.
# Going to see if this is helpful or not.
# https://spin.atomicobject.com/git-configurations-default/
rebase = true
[rebase]
# https://git-scm.com/docs/git-rebase#Documentation/git-rebase.txt---autosquash
autoSquash = true
# https://git-scm.com/docs/git-rebase#Documentation/git-rebase.txt---autostash
autoStash = true
[alias]
# https://github.com/prometheus/prometheus/blob/main/RELEASE.md
tag-release = "!f() { tag=v${1:-$(cat VERSION)} ; git tag -s ${tag} -m ${tag} && git push origin ${tag}; }; f"
[core]
editor = vim -f
# https://www.kernel.org/pub/software/scm/git/docs/v1.7.10.1/git-config.html
# https://git-scm.com/docs/gitattributes/1.7.3.3
safecrlf = true
autocrlf = false
# https://github.com/github/gitignore
excludesfile = ~/.gitignore_global
pager = less
[diff]
tool = vimdiff
# https://git-scm.com/docs/git-diff#Documentation/git-diff.txt---color-movedltmodegt
colorMoved = zebra
[difftool]
prompt = false
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
# https://golang.org/doc/faq#git_https
# This affects brew and git submodule checkout
[url "ssh://[email protected]/"]
insteadOf = https://github.com/
[url "ssh://[email protected]/"]
insteadOf = https://gitlab.com/
# The URL is case sensitive for SSH.
# FIXME: Change the URL to something longer term.
[url "ssh://[email protected]/"]
insteadOf = https://gitea.n.niceguyit.biz/
################################################################################
# vim: filetype=dosini
################################################################################