【发布时间】:2016-04-25 14:30:24
【问题描述】:
我通常忘记如何从两台不同的 Mac 推送到同一个 heroku 应用程序,所以我总是在 google 中查找直到找到命令 git add remote heroku git@heroku.com:my_project.git。
我想为这个命令创建一个别名,我只需要使用别名和应用程序的名称作为参数,如下所示:herokuadd thenameofmyapp。
我尝试使用别名 herokuadd git remote add heroku git@heroku.com:$argv.git 创建它,但它不起作用并且无法弄清楚原因。
【问题讨论】: