如果我运行此命令
git remote -v
heroku https://git.heroku.com/something.git (fetch)
heroku https://git.heroku.com/something.git (push)
origin https://jone@bitbucket.org/jone/something.git (fetch)
origin https://jone@bitbucket.org/jone/something.git (push)
如果我推送某些内容,它会转到位桶的存储库。如何推送到英雄库存储库?
从 Heroku CLI 添加您当地的 heroku
heroku git:remote something
您要推送的分支称为"heroku",因此现在应该可以正常工作:
git push heroku master