-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
69 lines (69 loc) · 2.07 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
[user]
name = Daniel Carl
email = [email protected]
signingkey = 0x3CA285230E6CBB5C
[color]
diff = auto
status = auto
branch = auto
grep = auto
[core]
editor = vim
excludesfile = ~/.gitignore
[diff]
tool = vimdiff
algorithm = histogram
[diff "image"]
command = ~/bin/imgdiff
[diff "mysql"]
textconv = "sed '/^) ENGINE=InnoDB/s/AUTO_INCREMENT=[0-9]* //'"
[diff "nocopyright"]
textconv = "sed '/^\\( \\*\\|#\\|\\/\\/\\) @copyright /d'"
[merge]
tool = vimdiff
[alias]
br = branch
co = checkout
cm = commit
cp = cherry-pick
df = diff
dfs = diff --staged
st = status
sts = status -s
prp = pull --rebase=merges -p
gr = log --graph --full-history --pretty=format:'%C(auto)%h%Creset %C(auto)%d%Creset %s %C(yellow)(%an, %cd)'
lc = log ORIG_HEAD.. --stat --no-merges
ll = log --date=local
wdiff = diff --color-words='[^[:space:],/]+'
# run like git exportfiles HEAD~3 /dir/to/put/files
exportfiles = !sh -c 'git diff $0 --name-only | "while read files; do mkdir -p \"$1/$(dirname $files)\"; cp -vf $files $1/$(dirname $files); done"'
# run like git exportfiles HEAD~3 /dir/to/put/file.tar.gz
exportarchive = !sh -c 'git archive -o "$1" HEAD $(git diff $0 --name-only -z | xargs -0)'
ignored = !git ls-files -v | grep '^[[:lower:]]'
ignore = !git update-index --assume-unchanged $1
unignore = !git update-index --no-assume-unchanged $1
clean-gone = !LC_ALL=C git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -d
[sendemail]
aliasesfile = ~/.mutt/aliases
aliasfiletype = mutt
smtpencryption = tls
smtpserver = mail.gmx.net
smtpuser = [email protected]
smtpserverport = 587
[pack]
compression = 5
threads = 2
[push]
default = simple
[svn]
rmdir = true
followparent = true
pushmergeinfo = true
[merge "ours"]
driver = true
[log]
date = iso
[tig]
line-graphics = utf-8
main-view = line-number:true,interval=1 id:yes date:default author:full commit-title:graph=v2,refs=true
# vim: et sw=4 ts=4