-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
37 lines (29 loc) · 853 Bytes
/
dot_gitconfig.tmpl
File metadata and controls
37 lines (29 loc) · 853 Bytes
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
[user]
name = Marc Henry de Frahan
useConfigOnly = true
{{- if not (eq .email "") }}
email = {{ .email }}
{{- end }}
[core]
pager = diff-so-fancy | less --tabs=4 -RF
[color]
ui = true
[alias]
# pretty view of history
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
# Show the diff between the latest commit and the current state
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
# Nice to use when diffing text files
wdiff = diff --color --color-words
# List aliases
aliases = config --get-regexp alias
[push]
default = simple
[rerere]
enabled = true
[init]
defaultBranch = main
[submodule]
recurse = true
[interactive]
diffFilter = diff-so-fancy --patch