-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
153 lines (153 loc) · 4.27 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#### -*- Mode: tab-width: 2; indent-tabs-mode: nil -*-
#### Vi-modeline: vim: shiftwidth=2:tabstop=8:textwidth=0:expandtab
[alias]
au = add -u
ai = add --interactive
ap = add --patch
ba = branch -a
br = branch
bl = blame --reverse
ca = commit -a -v
ci = commit -v
cl = clone
co = checkout
cp = cherry-pick
cx = cherry-pick -x
ed = commit --amend -v
dns = diff --name-status --patience
df = diff --color-words -M20 -C -B --find-copies-harder --patience
dfs = diff --color-words --stat -M20 -C -B --find-copies-harder --patience
dc = diff --color-words --cached --patience
dcs = diff --color-words --cached --stat -M20 -C -B --find-copies-harder --patience
g = grep
gc = grep --cached
gp = grep
gpc = grep --cached
ls = ls-files
lu = ls-files -u
lm = ls-files -m
lg = log --pretty=short --graph
lgs = log --pretty=short --graph --stat
lga = log --pretty=short --graph --all
lgas = log --pretty=short --graph --all --stat -M20 -C -B --find-copies-harder
lg1a = log --pretty=oneline --graph --all
lgg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
ld = log --follow --long_deleted_file
ldd = log --diff-filter=CDR --pretty=short --stat -M20 -C -B --find-copies-harder --
lp = log --pretty=format:'%h on %ci by %an: \"%s\"' --abbrev-commit
mt = mergetool
pd = diff -M20 -C -B --find-copies-harder --patience -p
pf = format-patch --patience -M20 -C -B --find-copies-harder --summary
s = stash
sp = stash pop
si = svn dcommit
sh = show --color-words --patience
shs = show --color-words --stat -M20 -C -B --patience
sr = svn rebase
st = status
ss = status --short
su = status -uno
pr = pull --rebase
ra = rebase --abort
ri = rebase --interactive
rc = rebase --continue
ro = rebase --onto
rst = reset HEAD
rp = reset --patch
r = remote
ru = remote update
uc = reset --soft HEAD^
undo = reset --hard
who = shortlog -s --
incoming = !git-incoming
outgoing = !git-outgoing
addremove = !git-addremove
wtf = !git-wtf -a -l
costats = shortlog -s -n --no-merges
who = shortlog -s --
publish = !git-publish-branch
mergefrom = !git-mergefrom
push-branch = !git-push-branch
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f"
k = !gitk
# graphviz_master = !git graphviz --first-parent master | dotty /dev/stdin #
# add commit messages? stats?
[user]
email = http://goo.gl/mcpzY
name = malex984
[merge]
tool = sourcetree
# tool = extMerge
# tool = kdiff3
conflictstyle = diff3
summary = true
log = true
stat = true
verbosity = 4
[mergetool "extMerge"]
cmd = ~/bin/extMerge "$BASE" "$LOCAL" "$REMOTE" "$MERGED"
trustExitCode = false
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[rebase]
stat = true
#[core]
# editor = vim
#### http://nathanhoad.net/how-to-colours-in-git
#### http://shallowsky.com/blog/programming/gitcolors.html
[color]
ui = auto
wtf = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
plain = normal blink
meta = yellow
frag = magenta ul
old = red bold
new = cyan bold
whitespace = normal red
commit = blue bold
# whitespace = red reverse bold
[color "status"]
# header = normal blink
# added = magenta yellow
# updated = green reverse
# changed = red bold
# untracked = blue white
# nobranch = red white bold
header = normal blink
added = cyan bold
updated = green bold
changed = green
untracked = red dim
nobranch = yellow dim
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
autocrlf = false
excludesfile = ~/.gitignore
[branch]
autosetupmerge = true
[push]
default = matching
[diff]
renames = true
# external = extDiff
#[diff "odf"]
# textconv=odt2txt
[diff "tex"]
xfuncname = "^(\\\\(sub)*section\\{.*)$"
[github]
user = malex984
[filter "myid"]
smudge = myid
clean = perl -pe \"s/\\\\\\$Id[^\\\\\\$]*\\\\\\$/\\\\\\$Id\\\\\\$/\"
[guitool "pr"]
cmd = git pull --rebase $ARGS
argprompt = yes