配置命令別名
git config --global alias.別名 原名
效果如下所示:
$ git config --global alias.ck checkout
$ git branch
master
newbranch
* originbranch
$ git ck master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
$ git branch
* master
newbranch
originbranch
相關資料:
- Git 官網(wǎng)
- Git 官方文檔
- [廖雪峰的 Git 教程](http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8
067c8c017b000) - Git 常用命令查詢文檔
- Git 在線學習網(wǎng)址 xue