Fork me on GitHub

git 快速提交

1
2
3
4
5
每次都
git add .
git ci -m "xxx"
git push
是不是很烦?

把上述命令合并成一个别名

1
alias cgitfix='new(){git add . && git ci -m ${1:-fix} && git push;};new'

使用

1
2
3
4
# 默认 commit 时的 msg 为 "fix"
$ cgitfix

$ cgitfix "some other msg"
-------------感谢您的阅读 有问题请留言(或mailto:frostbelt@sina.cn)-------------