-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
87 lines (68 loc) · 1.39 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
79
80
81
82
83
84
85
86
87
[core]
editor = vim
[alias]
# Staging
st = status
# Branch
br = branch
ba = branch
sup = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
# Commit
c = commit
ci = commit
cm = commit -m
# Clone
cl = clone
# Checkout
co = checkout
cb = checkout -b
# Merge
m = merge
me = merge
# Pull
pl = pull
# Push
ps = push
# Stash
ss = stash
# Reset
unstage = reset HEAD --
undo = reset --soft HEAD~1
reset = reset --hard HEAD~1
# Remote
r = remote -v
# Log
last = log -1
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
# other
df = diff
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[user]
name = Leo Wu
email = [email protected]
[push]
origin = release
default = simple
########
# Sooo much color
#######
[color]
ui = always
[color "diff"]
frag = magenta
meta = yellow
new = green
old = red
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = "red bold 52"
newNormal = "green bold"
newHighlight = "green bold 22"
[color "status"]
added = green reverse
changed = yellow reverse
untracked = red reverse