-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
77 lines (76 loc) · 2.2 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
[user]
email = [email protected]
name = Julio B
signingkey = C865F6DCD00A7611
[pass]
signcommits = true
[merge]
tool = vimdiff
conflictstyle = diff3
[commit]
verbose = true
[alias]
tree = log --graph --pretty=tree
lh = log --graph --pretty=hg
lhb = log --graph --pretty=hgb
l = log --pretty=l --date=short --decorate=short
la = log --all --pretty=la
ls = log --stat
logs = log --stat
cgrep = log --pickaxe-all -G
ce = config --global -e
alias = config --get-regexp 'alias.'
cob = checkout -b
ap = add -p
c = commit -v
s = status
sed = ! git grep -z --full-name -l '.' | xargs -0 sed -i -e
refl = reflog --date=relative
pastediff = "!f(){ git diff $@\
| curl -i -F'file=@-' 'https://0x0.st' \
| sed -n -e '/^x-token/{s/.*: //;h}' \
-e '${x;s/^/curl -Fdelete= -Ftoken=/;G;s/[\\r]*\\n/ /g;p;\
x;s/^/curl /;s/$/ | git apply/;p\
}' ; \
}; f"
[pretty]
tree = %C(cyan)%h%Creset %s %C(green)(%cr) %C(magenta)%G? %an %C(italic yellow)%d
l = %C(cyan)%h %C(green)%ad %C(magenta)%><(17,mtrunc)%an %Creset%s%C(italic yellow)%d
la = %C(cyan)%h %C(reset)%s %C(italic yellow)%d %C(green)(%cr) %C(magenta)%an%w(,,9)%+b
hg = \
commit: %C(bold red)%h%Creset %C(red)[%H]%Creset %C(bold magenta)%d %Creset%n\
date: %C(bold yellow)%cd %Creset%C(yellow)%cr%Creset%n\
author: %C(bold blue)%an%Creset %C(blue)[%ae]%Creset%n\
%C(cyan)%s%n%Creset
hgb = \
commit: %C(bold red)%h%Creset %C(red)[%H]%Creset %C(bold magenta)%d %Creset%n\
date: %C(bold yellow)%cd %Creset%C(yellow)%cr%Creset%n\
author: %C(bold blue)%an%Creset %C(blue)[%ae]%Creset%n\
%n%w(,6,6)%B%Creset
[diff]
tool = vimdiff
colorMoved = zebra
colorMovedWS = allow-indentation-change
algorithm = histogram
[pager]
log = /usr/share/git/diff-highlight/diff-highlight | less
show = /usr/share/git/diff-highlight/diff-highlight | less
diff = /usr/share/git/diff-highlight/diff-highlight | less
alias = awk '/^alias/ { \
sub(\"^alias.\",\"\") ";"\
$1 = sprintf(\"\\x1B[1";"31m%-7s\\x1B[0m\",$1) ";"\
print $0 ";"\
}' | less
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[interactive]
singleKey = true
; [sendemail]
; smtpServer = 192.168.250.25
; smtpDomain = gitarch
; smtpAuth = none