1. 通过命令修改
git config --global alias.ss status
git config --global alias.co checkout
git config --global alias.cm commit
git config --global alias.df diff
git config --global alias.br branch
git config --global alias.ps push
git config --global alias.pr pull --rebase
git config --global alias.mg merge
2. 直接修改 Config 文件
~/.gitconfig
修改文件:
...
[alias]
ss = status
co = checkout
cm = commit
df = diff
br = branch
mg = merge