git alias 命令简写 缩写 别名 懒人必备

来源:互联网 发布:mac删除当前用户 编辑:程序博客网 时间:2024/06/06 07:33

git alias 命令简写 缩写 别名 懒人必备

原来是

git statusgit commit -a -m 'msg'git checkout branch

设置别名

git config --global alias.st  "status"git config --global alias.ci "commit"git config --global alias.co "checkout"

简单多了有没有

git stgit ci -a -m 'msg'git co branch

还有更简单的

gstgcam 'msg'gco branch

请查阅 oh my zsh

0 0