-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
78 lines (66 loc) · 1.36 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
74
75
76
77
78
[user]
useConfigOnly = true
name = Wei Liu
[core]
editor = nvim -c 'set ft=gitcommit tw=72 wrap spell' -c ':0'
abbrev = 12
pager = less -S
[pretty]
fixes = Fixes: %h (\"%s\")
[color]
ui = auto
[diff]
tool = vimdiff
renames = true
compactionHeuristic = true
[difftool]
prompt = false
[rerere]
enabled = true
[alias]
l = log --stat
st = status -s
ci = commit
cp = cherry-pick
co = checkout
br = branch -vv
di = diff
dt = difftool
sh = show -p --stat
pu = pull
oneline = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
re = remote -v
fe = fetch
wt = worktree
curr = rev-parse --abbrev-ref HEAD
refactor = !sh -c 'git grep -l \"$1\" -- $GIT_PREFIX | xargs sed \"s|$1|$2|g\" -i' -
marker = !bash -c 'touch .marker-$1 && git add .marker-$1 && git commit -m "---$1---"' -
behind = !bash -c 'git branch -vv | grep behind' -
ahead = !bash -c 'git branch -vv | grep ahead' -
[push]
default = current
[format]
pretty = fuller
[grep]
lineNumber = true
[pull]
ff = only
[commit]
verbose = true
[merge]
conflictStyle = diff3
[stgit.alias]
sh = show
pu = push
po = pop
r = refresh
ed = edit -d
l = series -d -e
la = series -d -e -a
n = new
di = diff
st = !git st # use shell alias to stop stgit from whining
br = branch -l
b = branch
[stgit]
autosign = Signed-off-by