-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
128 lines (122 loc) · 2.62 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[color]
ui = true
[alias]
h = help
s = svn
k = !gitk
a = add
b = branch
d = diff
f = fetch
g = grep
i = init
l = log
m = merge
r = remote
t = tag
ap = a -p
bs = bisect
ca = ci --amend
cc = ca --no-edit
ci = commit -v
co = checkout
cp = cherry-pick
dw = d --color-words
dc = d --color-words="." # minimal diff (charwise)
ff = merge --ff-only
lg = ll --graph
lk = lg --decorate
ll = l --oneline #--decorate
ln = l --name-status
lp = l -p
ls = l --stat
pl = pull
ps = push
rb = rebase
sh = show
sl = shortlog
st = status -sb
ui = gui
up = "!f(){ \
remote=${2:+$1}; \
branch=${2:-$1}; \
git f \"${remote:-origin}\" ${branch:+\"$branch:$branch\"}; \
};f"
wc = whatchanged
cfg = config
cim = ci -m
fix = "!f(){ git ci --fixup \"${1:-HEAD}\";};f"
pop = stash pop
psf = ps --force-with-lease
psu = ps -u
rba = rb -i --autosquash
rbu = rba @{u}
rbam = "!f() { git rba \"$(git merge-base \"${1:-\"$(git rev-parse --symbolic @{u} 2>/dev/null || echo origin)\"}\" @)\"; };f"
ref = reflog
sub = submodule
#top = log --oneline --decorate -n10
#top = !sh -c 'git log --oneline --decorate -n${1:-10}' -
todo = "!f() { git d \"${1:-origin}...\" | grep -i TODO; };f"
top = "!f() { \
n=${1:-10}; \
test \"$1\" && shift; \
git ll --decorate -n$n \"$@\"; \
}; f"
wcp = wc -p
head = ll -1 --shortstat HEAD
stat = d --stat
amend = ci --amend
sstat = d --shortstat
lstat = l --stat
serve = daemon --verbose --reuseaddr --export-all \
--base-path=. ./.git
serve-bare = daemon --verbose --reuseaddr --export-all \
--base-path=. .
add-commit = "!git add -A; git commit"
mt = mergetool
cooking = "!f() { \
b=\"${1:-HEAD}\"; \
git b --no-merged \"$b\" | grep -v '^\\*'; \
}; f"
last = "!f() {\n git ref | awk '/checkout: moving from/ && !seen[$NF]++ {print $NF}' | head \"-${1:-8}\";\n}; f \"$@\""
[user]
name = Daniel Knittl-Frank
email = knittl89+git@googlemail.com
signingkey = C3624F037705427ADE61C971AD815381D46337FA
[sendemail]
from=Daniel Knittl-Frank <knittl89+git@googlemail.com>
#from=Daniel Knittl-Frank <knittl89@googlemail.com>
smtpEncryption=tls
smtpServer=smtp.gmail.com
smtpUser=knittl89+git@googlemail.com
smtpServerPort=587
[push]
default = tracking
[mergetool]
keepBackup = false
[gui]
commitmsgwidth = 72
[column]
ui = auto,dense
[core]
excludesfile = /home/knittl/.gitignore
editor = vim
commitGraph = true
[pager]
status = true
[color "grep"]
filename = yellow
[advice]
ignoredHook = false
[gc]
writeCommitGraph = true
[push]
default = current
[rebase]
autostash = true
[repack]
writeBitmaps = true
[merge]
conflictstyle = zdiff3
[branch]
sort = -committerdate