-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
73 lines (63 loc) · 1.45 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
[user]
name = Kirill Kazakov
[alias]
br = branch
bu = "!f() { local br=`git rev-parse --abbrev-ref HEAD` ; git br --set-upstream-to=origin/$br ; }; f"
bx = checkout -b
co = checkout
cp = cherry-pick
d = diff
dt = diff --stat
dw = diff --color-words
e = diff --staged
et = diff --staged --stat
ew = diff --staged --color-words
dvi = difftool -y -t vimdiff
dvid = difftool -y -t _vimdirdiff --dir-diff
ff = merge --ff-only
l = log --oneline --decorate
ls = log --graph --date=short --format=\"%C(green)%h%C(reset) %s %C(blue){%G?} %aN%C(reset) %C(cyan)%ad%C(green)%d %C(reset)\"
lsz = !git ls -9
lf = !git ls --first-parent
lfz = !git lf -9
sl = !sl
lsd = "!f() { local br=$1; [ -z \"$br\" ] && br=`git rev-parse --abbrev-ref HEAD` ; git ls --boundary $br...origin/$br ; } ; f"
m = commit
ma = commit --amend
max = commit --amend --no-edit
mm = commit -m
h = show
hw = show --color-words
ht = show --stat
st = status -s -b
stig = status -s -b --ignored
rb = rebase --autostash
[color]
branch = true
diff = auto
grep = true
interactive = auto
showbranch = true
status = true
ui = auto
[core]
ignorecase = true
pager = less -x4
trustctime = false
[diff]
renames = copy
mnemonicprefix = true
wordRegex = [A-Za-z_][A-Za-z0-9_]*|[0-9]+|[^A-Za-z0-9_[:space:]]
[grep]
patterntype = extended
[merge]
conflictstyle = diff3
defaulttoupstream = true
[pager]
lsz = false
[push]
default = current
[pull]
ff = only
[rerere]
enabled = true