2016-09-13 37 views
0

是否有可能做到以下几点:传递参数别名庆典

我想运行以下命令:

push 'foo' 

我需要执行:

git commit -m 'foo' && git push origin master && cap production deploy 

回答

1

你可以使用shell函数而不是别名:

push() { 
    git commit -m "$1" && git push origin master && cap production deploy 
}