forked from krf/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
98 lines (79 loc) · 2.16 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
# vim: set noexpandtab:
[user]
email = [email protected]
name = Kevin Funk
[pull]
rebase = true
[push]
default = current
[color]
ui = true
[apply]
whitespace = fix
[diff "odf"]
textconv=odt2txt
[merge]
tool = kdiff3
guitool = kdiff3
[commit]
template = ~/.commit-template
status = on
[alias]
b = checkout -b
c = checkout
coam = commit --amend
coup = commit --amend --no-edit
d = diff --exit-code
dt = difftool --dir-diff
f = fetch --all
i = rebase -i
l = log --graph \
--pretty=format:'%C(yellow)%h%Creset -%C(red)%d%Creset %s %C(green)(%cr)%Creset %C(bold blue)<%an>%Creset' \
--abbrev-commit --date=relative
lo = log -u --stat
r = pull --rebase
s = status -uno
up = !git fetch --all && git stash && git pull --rebase && git stash pop
pushall = !git remote | xargs -n1 git push
pushalltags = !git remote | xargs -n1 git push --tags
prunetags = !git tag -l | xargs git tag -d && git fetch -t
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
edit-last-commit = !vim `git diff-tree -r --name-only HEAD HEAD~1`
# post-review = !post-review -o --guess-summary --guess-description
post-review = rebase -i -x \"arc diff --head HEAD HEAD~1 && arc amend\"
outgoing = log @{u}..
incoming = log ..@{u}
reset-to-upstream = reset --hard @{upstream}
# more aliases: http://www.jukie.net/~bart/conf/gitconfig
# URL rewrites
[url "git://anongit.kde.org/"]
insteadOf = kde:
[url "ssh://[email protected]/"]
pushInsteadOf = kde:
pushInsteadOf = git://anongit.kde.org/
pushInsteadOf = git://anongit1.kde.org/
[url "[email protected]:"]
pushInsteadOf = kde:
[url "git://github.com/"]
insteadOf = "github:"
[url "[email protected]:"]
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "[email protected]:"]
pushInsteadOf = git://gitorious.org/
[url "ssh://[email protected]:29418/"]
insteadOf = "qt:"
[rebase]
autostash = true
stat = true
[include]
path = ~/.gitconfig-private
[rerere]
enabled = true
[init]
templatedir = ~/.git-templates
[core]
attributesfile = ~/.gitattributes_global
[merge "ours"]
driver = true