-
Notifications
You must be signed in to change notification settings - Fork 4
/
gitconfig
79 lines (76 loc) · 2.35 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
[color]
ui = auto
# diff = auto
# status = auto
[core]
pager = less -XF
excludesfile = ~/.ratpoison/gitignore
[rerere]
enabled = yes
[interactive]
singlekey = yes
[push]
default = matching
[log]
showSignature = true
[alias]
st = status
sts = status -s
d = diff
dc = diff --cached
wd = diff --color-words
wdc = diff --cached --color-words
bdc = diff --cached --color-words=.
ci = commit -v
co = checkout
ls = ls-files
k = !gitk --all
ranking = "!git shortlog | egrep -v '^ |^$' | sed -e 's/^\\(.*\\) (\\(.*\\)):/\\2 \\1/' | sort -rn"
addremove = "!git add . && git ls-files --deleted | xargs --no-run-if-empty git rm"
wdiff = diff --color-words
cdiff = diff --cached
wcdiff = diff --cached --color-words
bdiff = diff --color-words=.
bcdiff = diff --cached --color-words=.
wshow = show --color-words
stat = status -s
rmc = rm --cached
unadd = rm --cached
clog = log --oneline
flog = log --follow
dlog = log --decorate=full
slog = log --decorate=full --stat
plog = log --decorate=full --patch
wlog = log --decorate=full --patch --color-words --find-copies-harder
glog = log --decorate=full --graph
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
logdiff = log -p -U0
greplog = log --grep
p = pull --ff-only
pu = push
pp = !git pull --ff-only && git push
apw = add--interactive-words --patch=stage --
stashed = stash list --pretty=format:'%gd: %Cred%h%Creset %Cgreen[%ar]%Creset %s'
br = branch -vv
rso = remote show origin
dsl = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --decorate --abbrev-commit --date=relative --date-order
ack = -c color.grep.linenumber=\"bold yellow\" \
-c color.grep.filename=\"bold green\" \
-c color.grep.match=\"reverse yellow\" \
grep --break --heading --line-number
# Siehe auch
# http://tomster.org/blog/archive/2009/01/12/git-command-aliases und
# http://git.wiki.kernel.org/index.php/Aliases
# http://glt11-programm.linuxtage.at/attachments/17_glt11-git-goodies.pdf
[remote-hg]
hg-git-compat = true
[user]
signingkey = 2FF9CD59612616B5
[init]
defaultBranch = master
[pull]
rebase = false
[annex]
synccontent = false
[safe]
directory = /etc