1,敲一行命令,告诉Git,以后st就表示status:
$ git config --global alias.st status
然后在敲git st看看效果。
2,co表示checkout,ci表示commit,br表示branch:
$ git config --global alias.co checkout
$ git config --global alias.ci commit
$ git config --global alias.br branch
以后提交就可以简写成:
$ git ci -m "xxxxx."