forked from emj365/.dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
84 lines (73 loc) · 1.75 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
[user]
name = Michael JIN
email = [email protected]
editor = vim
[alias]
# Add
ad = add
aa = add .
# Commit
cm = commit -m
ca = commit --amend -m
# Checkout
co = checkout
cb = checkout -b
# Cherry-pick
cp = cherry-pick
# Diff
df = diff
# List
tl = tag -l
bl = branch -a
rl = remote -v
# Status
st = status -s
# Pull
pl = pull
plo = pull --rebase origin
plom = pull --rebase origin master
plog = pull --rebase origin gh-pages
plu = pull --rebase upstream
plum = pull --rebase upstream master
plug = pull --rebase upstream gh-pages
# Push
ps = push
pso = push origin
psom = push origin master
psog = push origin gh-pages
psu = push upstream
psum = push upstream master
psug = push upstream gh-pages
# Remote
ra = remote add
rao = remote add origin
rau = remote add upstream
rs = remote set-url
rso = remote set-url origin
rsu = remote set-url upstream
# Logs
l = log --pretty=oneline --decorate --abbrev-commit --max-count=15
ll = log --graph --pretty=format:'%Cred%h%Creset %an: %s %Creset%Cgreen(%cr)%Creset' --abbrev-commit --date=relative
# Sync
sync = plu && pso
[color]
diff = auto
status = auto
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = cyan bold
branch = cyan bold
changed = magenta bold
deleted = red bold
untracked = yellow bold
[push]
# 'git push' will push the current branch to its tracking branch
# the usual default is to push all branches
default = tracking
[core]
editor = vim
excludesfile = ~/.gitignore_global