-
Notifications
You must be signed in to change notification settings - Fork 8
/
.gitconfig
104 lines (87 loc) · 2.1 KB
/
.gitconfig
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
[include]
path = .gitconfig.user
[github]
user = cloudhead
[sendemail]
annotate = yes
smtpserver = smtp.gmail.com
smtpencryption = tls
smtpserverport = 587
smtpuser = [email protected]
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta
old = brightred
oldMoved = red
oldMovedAlternative = red
newMoved = green
newMovedAlternative = green
new = brightgreen
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
excludesfile = /home/cloudhead/.gitignore
editor = /usr/bin/nvim
pager = less -F -X
[push]
autoSetupRemote = true
[alias]
b = branch -v
c = commit -v
s = status -sb
r = rebase
re = rebase
st = status
co = checkout
d = diff --word-diff=color
l = log --stat
ll = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
delete-merged = branch --merged | xargs git branch -d
open-patch = push rad HEAD:refs/patches
changes = log -c --reverse
sl = stash list --format='%gd (%cr): %gs'
lg = "!f() { \
git log --all --color --graph --pretty=format:'%C(bold yellow)<sig>%G?</sig>%C(reset) %C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr) %C(blue)<%an>%C(reset)' | \
sed \
-e 's#<sig>G</sig>#Good#' \
-e 's#<sig>B</sig>#\\nBAD \\nBAD \\nBAD \\nBAD \\nBAD#' \
-e 's#<sig>U</sig>#Unknown#' \
-e 's#<sig>X</sig>#Expired#' \
-e 's#<sig>Y</sig>#Expired Key#' \
-e 's#<sig>R</sig>#Revoked#' \
-e 's#<sig>E</sig>#Missing Key#' \
-e 's#<sig>N</sig>#None#' | \
less -r; \
}; f"
[gpg]
format = ssh
[gpg.ssh]
program = ssh-keygen
allowedSignersFile = .gitsigners
[commit]
gpgsign = true
[pull]
ff = only
rebase = true
[init]
defaultBranch = master
[rerere]
enabled = 1
[diff]
colorMoved = dimmed-zebra
colorMovedWs = allow-indentation-change
[fetch]
prune = true