[alias]
a = add
aa = add --all
b = branch
bD = branch -D
ba = branch -a
bd = branch -d
br = branch --remote
cam = commit -a -m
cb = checkout -b
ci = commit
cim = commit -m
co = checkout
cp = cherry-pick
cpa = cherry-pick --abort
cpc = cherry-pick --continue
cps = cherry-pick --skip
d = diff
f = fetch
lg = log --stat
lgg = log --graph
lgga = log --graph --decorate --all
lgm = log --graph --max-count=10
lgp = log --stat -p
lo = log --oneline --decorate
lod = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'
lods = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset --date=short'
log = log --oneline --decorate --graph
loga = log --oneline --decorate --graph --all
lol = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
lola = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset --all'
lols = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset --stat'
m = merge
ma = merge --abort
pd = push --dry-run
ps = push
r = remote
ra = remote add
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbs = rebase --skip
rsh = reset --hard
rv = remote -vv
st = status
参考大佬的文章:https://www.jianshu.com/p/cf156db0db25
网友评论