我将我的Heroku应用程序从他们的愚蠢名称重命名为更合理的名称.我从没想过会在这里给我带来麻烦.刚才我尝试了以下内容
git remote -v
heroku http://appname.herokuapp.com (fetch)
heroku http://appname.herokuapp.com (push)
origin git@github.com:MyAccount/games.git (fetch)
origin git@github.com:MyAccount/games.git (push)
Run Code Online (Sandbox Code Playgroud)
我以为我在那里赢了.但后来我试过了
git push heroku master
Run Code Online (Sandbox Code Playgroud)
然后我收到了这条消息
fatal: repository 'http://appname.herokuapp.com/' not found
Run Code Online (Sandbox Code Playgroud)
我不明白为什么不推
您需要更改heroku遥控器以匹配应用的新名称.
在命令行上执行
git remote remove herokugit remote add heroku git@heroku.com:YOUR_APP_NAME.git如果不解决这个问题,请告诉我
| 归档时间: |
|
| 查看次数: |
2149 次 |
| 最近记录: |