我不小心在git repo中创建了多个heroku应用程序:
(workout) n155-p250:workout sahandzarrinkoub$ heroku create agile-garden-20427
Creating ⬢ agile-garden-20427... done
(workout) n155-p250:workout sahandzarrinkoub$ heroku create
Creating app... done, ⬢ immense-harbor-64484
(workout) n155-p250:workout sahandzarrinkoub$ heroku create workoutcalendar
Creating ⬢ workoutcalendar... done
我只想要一个heroku应用程序,一个名为executmentcalendar的应用程序。因此我上网删除了我的heroku帐户中的所有其他应用程序。我进入了应用程序设置,然后为“锻炼日历”中的每个应用程序单击了删除应用程序。但是,当我尝试时push
,它仍然会记住一个已删除的旧应用程序。
(workout) n155-p250:workout sahandzarrinkoub$ git push heroku master
remote: ! No such app as agile-garden-20427.
fatal: repository 'https://git.heroku.com/agile-garden-20427.git/' not found
我的猜测是该git push heroku master
命令以某种方式映射到我创建的第一个heroku应用程序,并且我必须在自己的计算机上的本地存储库中对此进行更改。如果有人可以向我解释如何做,或者如果我误解了这个问题,请提供适当的解决方案,我将非常感激。
您可以检查git remote -v
输出吗:如果它仍然引用错误的URL,则可以使用以下命令进行更改:
git remote set-url origin https://git.heroku.com/workoutcalendar.git
然后尝试再次推动。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句