-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
104 lines (79 loc) · 2.4 KB
/
dot_gitconfig.tmpl
File metadata and controls
104 lines (79 loc) · 2.4 KB
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
# ~/.gitconfig
# =============================================================================
# User-specific Git configuration file.
#
# See https://git-scm.com/docs/git-config
#
# {{- /* This file supports Go's text/template language. */ -}}
#
# Sources:
# https://git-scm.com/docs/git-config/
# https://github.com/renemarc/dotfiles/blob/master/dot_gitconfig.tmpl
[user]
name = "{{ .name }}"
email = "{{ .email }}"
signingkey = "{{ .signingkey }}"
[commit]
# https://help.github.com/articles/signing-commits-using-gpg/
gpgsign = true
# Specify template file for new commit messages.
template = ~/.gitmessage.txt
[core]
# Store global exclusions into a custom file.
excludesfile = ~/.gitignore_global
attributesfile = ~/.gitattributes
whitespace=cr-at-eol
editor = nano
[pull]
rebase = false
[push]
# https://git-scm.com/docs/git-config#git-config-pushdefault
default = current
# Make `git push` push relevant annotated tags when pushing branches out.
followTags = true
[color]
ui = auto
interactive = auto
[init]
defaultBranch = master
[filter "lfs"]
# Turn a content that by itself is unusable into a usable content.
required = true
# Specify the command to convert a worktree file's content to a blob upon checkin.
clean = git-lfs clean -- %f
# Specify the command to convert a blob object's content to a worktree file upon checkout.
smudge = git-lfs smudge -- %f
# Convert between Large File Storage pointer and actual content.
process = git-lfs filter-process
[help]
# Automatically correct and execute mistyped commands.
autocorrect = 1
[rebase]
# Create a temporary stash entry before the operation begins.
autostash = true
[branch]
# Show most recently changed branches first.
sort = -committerdate
[web]
browser = google-chrome
[credential]
{{- if eq .chezmoi.os "darwin" }}
helper = osxkeychain
{{- end }}
[apply]
# Detect whitespace errors when applying a patch.
whitespace = fix
[diff]
# List submodules commits in the range.
submodule = log
# Detect copies as well as renames.
renames = copies
[diff "bin"]
# Use `hexdump` to diff binary files.
textconv = hexdump -v -C
[merge]
# Include summaries of merged commits in newly created merge commit messages.
log = true
[include]
# Include aliases.
path = .gitconfig_aliases