-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitconfig.example
111 lines (92 loc) · 2.97 KB
/
.gitconfig.example
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
105
106
107
108
109
110
111
[user]
name = Real Name
email = [email protected]
[github]
user = githubusername
token = githubtoken
[delta]
# https://github.com/dandavison/delta
dark = true
highligh-removed = true
navigate = true
side-by-side = false
plus-style = "syntax #004200"
minus-style = "syntax #420000"
theme = "DarkNeon"
grep-file-style = yellow
grep-line-number-style = orange
grep-match-word-style = red bold
[core]
editor = vim
excludesfile = ~/.dotfiles/.gitignore.global
attributesfile = ~/.dotfiles/.gitattributes.global
pager = LESS='RF --redraw-on-quit' delta
#pager = diff-so-fancy | less --tabs=4 -RFX
[color]
ui = auto
[color "diff"]
meta = white dim # metainformation
frag = cyan # line number in hunk header
func = white # function name in hunk header
plain = white # context text
new = green # added lines
old = red # removed lines
commit = yellow # commit headers
whitespace = red reverse # whitespace errors
[color "diff-highlight"]
oldNormal = red
oldHighlight = red 52
newNormal = green
newHighlight = green 22
[color "status"]
added = green
changed = red
untracked = yellow
[color "grep"]
filename = yellow
[diff]
tool = vimdiff
compactionHeuristic = true
colorMoved = default
[difftool]
prompt = true
[diff-so-fancy]
# Disable green marker at the beginning of new empty lines
markEmptyLines = false
[diff "ansible-vault"]
# Custom command to diff ansible vaults.
# Requires a .gitattributes file with the following line:
# *.vault.yml diff=ansible-vault merge=binary
textconv = ansible-vault view
cachetextconv = false
[merge]
tool = vimdiff
conflictstyle = zdiff3
[instaweb]
httpd = webrick
port = 1234
[interactive]
singlekey = true
diffFilter = delta --color-only
[fetch]
prune = true
[push]
default = simple
[pull]
# Only pull if fast-forward is possible. Use `git pull --rebase` or `git pull --no-ff` otherwise.
ff = only
[alias]
co = checkout
st = status
# prettier log (limited to 10 commits)
logg = !git --no-pager log --pretty=tformat:'%Creset (%ar) - %Cred %an: %Cgreen %s %Creset' --graph -n 10
# prettier log (limited to 10 commits, showing hash)
loggh = !git --no-pager log --pretty=tformat:'%C(yellow) %H %Creset (%ar) - %Cred %an: %Cgreen %s %Creset' --graph -n 10
# prettier log (showing all commits)
logga = log --pretty=format:'%Creset (%ar) - %Cred %an: %Cgreen %s' --graph
# prettier log (showing all commits, showing hash)
loggha = log --pretty=format:'%C(yellow) %H %Creset (%ar) - %Cred %an: %Cgreen %s' --graph
loggah = log --pretty=format:'%C(yellow) %H %Creset (%ar) - %Cred %an: %Cgreen %s' --graph
# diff and show based on words instead of lines
diffw = diff --color-words
showw = show --color-words