-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
66 lines (58 loc) · 1.34 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
[user]
name = avezhenya
email = avezhenya@gmail.com
[push]
default = matching
[help]
autocorrect = true
[merge]
tool = threesome
[mergetool "threesome"]
cmd = "vim -f $BASE $LOCAL $REMOTE $MERGED -c 'ThreesomeInit'"
trustExitCode = true
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
[color]
ui = auto
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
up = !sh -c 'git pull --rebase --prune && git log --pretty=format:\"%Cred%ae %Creset- %C(yellow)%s %Creset(%ar)\" HEAD@{1}..'
ls = ls-files
b = branch
br = branch
t = tag
d = diff --stat -p -C
ds = diff --staged --stat -p -C
ci = commit -v
co = checkout
st = status -sb
pr = pull --rebase
cdiff = diff --color
l = log -p
vimdiff = difftool -t vimdiff
guilt = "!f(){ git log --pretty='format:%an <%ae>' $@ | sort | uniq -c | sort -rn; }; f"
[github]
user = avezhenya
[core]
excludesfile = ~/.dotfiles/.gitignore_global
[url "git@github.com:"]
insteadOf = https://github.com/
[pull]
rebase = true