-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
78 lines (68 loc) · 1.66 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
[core]
editor = $EDITOR
autocrlf = input
excludesfile = ~/.gitignore_global
pager = diff-so-fancy | less --tabs=4 -RFX
[user]
name = ~hedy
email = hedy.dev@protonmail.com
signingkey = B51B5A8D1B176372
[init]
# Well, it's shorter.
defaultBranch = main
[alias]
s = status -s
c = commit
b = branch
a = add
unadd = restore --staged
ls-alias = config --get-regexp alias
l = log --oneline
ll = log
ss = status
ch = checkout
chb = checkout -b
mylog = log --pretty=format:'%C(white)%h %C(blue)%an %C(green)%as %C(white)"%s"'
lgraph = log --oneline --graph --decorate --all
brd = branch -d
fame = !python3 -m gitfame
p = push
cam = commit -am # rarely used; cav and cv are now my best friends :>
cav = commit -av
cv = commit -v
cm = commit -m
coops = commit --amend --no-edit # commit... oops!
pushall = !git remote | xargs -L1 git push --all
# Same as pushall but not for all branches
pall = !git remote | xargs -L1 git push
d = diff
ds = diff --staged
[credential]
helper = store --file="$HOME/.git_creds"
helper = cache --timeout 90000
[help]
autocorrect = 30
[pull]
rebase = false
[commit]
gpgsign = true
# sendmail config in [include]
[include]
path = ~/.gitconfig-local
# diff-so-fancy
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 11
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[push]
followTags = false