git命令频繁使用时,可以设置缩写,使用更方便
编辑~/.gitconfig,添加如下项
cpp
#缩写
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
st = status
co = checkout
br = branch
mg = merge
ci = commit
line = log --oneline
continue = cherry-pick --continue
amend = commit --amend --no-edit
