-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdot_gitconfig.tmpl
93 lines (61 loc) · 2.07 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
[alias]
lgb = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative --branches
l = log --pretty=oneline -n 50 --graph --abbrev-commit
ll = log --pretty=format:\"%C(yellow)%h%Creset %C(cyan)%ci%Creset %C(green)%ce%Creset%x09%s%C(cyan)%C(bold)%d%Creset\" -n 50 --graph
[apply]
whitespace = fix # Fix whitespace errors when applying a patch
[branch]
autosetupmerge = false # Do not track starting branch, use `git-track` function
autosetuprebase = always # Rebase changes on pull
[commit]
gpgsign = true
template = ~/.gitmessage
[color]
branch = auto
diff = auto
grep = auto
interactive = auto
showBranch = auto
status = auto
ui = true
[color "diff"]
#commit =
#context =
#func =
#whitespace =
frag = white bold
meta = blue
new = green
old = red
[core]
attributesfile = ~/.gitattributes
autocrlf = input
excludesfile = ~/.gitignore
filemode = true
hidedotfiles = false
ignorecase = false
pager = "diff-so-fancy | less --tabs=4 -RFX" # SEE: https://github.com/so-fancy/diff-so-fancy
trustctime = false # SEE: http://www.git-tower.com/blog/make-git-rebase-safe-on-osx/
[credential]
helper = cache
[diff]
renames = copies # Detect copies as well as renames
[diff "bin"]
textconv = hexdump -v -C # Use `hexdump` to generate a human-readable diff
[init]
defaultBranch = main
[interactive]
diffFilter = "diff-so-fancy --patch" # SEE: https://github.com/so-fancy/diff-so-fancy
[pull]
rebase = true # Rebase branch on top of fetched branch
[push]
default = current # Push the current branch to update a branch with the same name on the receiving end
followTags = true # Push as well tags that are reachable from the commits
[rebase]
autoStash = true # Create a temporary stash entry before the operation begins, and apply it after the operation ends
[remote "origin"]
prune = true # Delete stale references associated with "origin"
[user]
email = {{ .dotfiles.email | quote }}
name = {{ .dotfiles.name | quote }}
signingkey = {{ .dotfiles.git_signingkey | quote }}