1 | 每次都 |
把上述命令合并成一个别名
1 | alias cgitfix='new(){git add . && git ci -m ${1:-fix} && git push;};new' |
使用
1 | # 默认 commit 时的 msg 为 "fix" |
想学更多有意思的东西,想做自己的网站,想学画画
1 | 每次都 |
1 | alias cgitfix='new(){git add . && git ci -m ${1:-fix} && git push;};new' |
1 | # 默认 commit 时的 msg 为 "fix" |