/
gitconfig
71 lines (66 loc) · 1.86 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
[user]
name = Dmitry Medvinsky
email = me@dmedvinsky.name
[help]
autocorrect = -1
[core]
editor = vim
pager = less -FRSX
whitespace = fix,trailing-space,space-before-tab,cr-at-eol
[color]
ui = auto
diff = auto
status = auto
log = auto
grep = auto
interactive = auto
pager = true
[color "diff"]
whitespace = blue reverse
meta = white
[apply]
whitespace = fix
[diff]
renames = copies
tool = vimdiff-g
[merge]
stat = true
conflictstyle = diff3
tool = threesome
[difftool "vimdiff-g"]
cmd = "vim -d -f $LOCAL $REMOTE"
[mergetool "threesome"]
cmd = "vim -f $BASE $LOCAL $REMOTE $MERGED -c 'SpliceInit'"
trustExitCode = true
[difftool]
prompt = false
[mergetool]
prompt = false
keepBackup = false
[advice]
pushNonFastForward = false
statusHints = false
[branch]
autosetupmerge = true
[push]
default = tracking
[alias]
tags = tag -l
branches = branch -a
remotes = remote -v
root = rev-parse --show-toplevel
currentbranch = !git branch --contains HEAD | grep '*' | tr -s ' ' | cut -d ' ' -f2
l = log -18 --color=always --all --topo-order --pretty='format:%Cgreen%h%Creset %s%Cred%d%Creset %C(black bold)(by %an)%Creset'
ll = log --color=always --all --topo-order --pretty='format:%Cgreen%h%Creset %s%Cred%d%Creset %C(black bold)(by %an)%Creset'
gl = log -12 --color=always --all --graph --topo-order --pretty='format:%Cgreen%h%Creset %s %C(black bold)(by %an)%Creset%C(yellow bold)%d%Creset%n'
gll = log --color=always --all --graph --topo-order --pretty='format:%Cgreen%h%Creset %s %C(black bold)(by %an)%Creset%C(yellow bold)%d%Creset%n'
pull = pull --ff-only
a = add
c = commit
ca = commit --all
cam = commit --amend
d = diff
dc = diff --cached
o = checkout
s = status
unstage = reset HEAD