-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
71 lines (71 loc) · 1.7 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
[apply]
whitespace = nowarn
[color]
diff = auto
status = auto
branch = auto
ui = true
#[color "diff"]
# new = cyan
# meta = white
[color "diff"]
meta = yellow bold
commit = green bold
frag = magenta bold
old = red bold
new = cyan bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = "red bold"
oldHighlight = "black red"
newNormal = "cyan bold"
newHighlight = "black 51"
[user]
name = Janne Koponen
email = [email protected]
[alias]
s = status
c = commit
ca = commit -am
r = rebase
co = checkout
cb = checkout -b
d = diff
m = merge
l = log
ds = diff --cached
graph = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f"
tree = "forest --pretty=format:\"%C(red)%h %C(magenta)(%ar) %C(blue)%an %C(reset)%s\" --style=15 --reverse"
date = "log --graph --date-order -C -M --pretty=format:\"<%h> %ad [%an] %Cgreen%d%Creset %s\" --all --date=short"
ours = "!f() { git checkout --ours $@ && git add $@; }; f"
theirs = "!f() { git checkout --theirs $@ && git add $@; }; f"
[diff]
tool = vimdiff
algorithm = histogram
[merge]
tool = diffconflicts
ff = false
[mergetool "diffconflicts"]
cmd = diffconflicts vim $BASE $LOCAL $REMOTE $MERGED
trustExitCode = true
keepBackup = false
[push]
default = current
[branch]
autosetupmerge = always
autosetuprebase = always
[rerere]
enabled = true
[core]
quotepath = false
excludesfile = /home/janne/.gitignore
mergeoptions = --no-ff --no-commit
[help]
autocorrect = 3
[github]
user = tharna
[remote "origin"]
prune = true
[pager]
diff = diff-so-fancy | less --tabs=1,5 -RFX
show = diff-so-fancy | less --tabs=1,5 -RFX