PS C:\.dev\despesas-python> heroku create app-despesas-pessoais-python
» Warning: heroku update available from 7.53.0 to 8.0.5.
Creating ⬢ app-despesas-pessoais-python... done
https://app-despesas-pessoais-python.herokuapp.com/ | https://git.heroku.com/app-despesas-pessoais-python.git
PS C:\.dev\despesas-python> git push heroku main
remote: ! No such app as radiant-gorge-67370.
fatal: repository 'https://git.heroku.com/radiant-gorge-67370.git/' not found
PS C:\.dev\despesas-python> git push heroku main app-despesas-pessoais-python
error: src refspec app-despesas-pessoais-python does not match any
error: failed to push some refs to 'https://git.heroku.com/radiant-gorge-67370.git'
PS C:\.dev\despesas-python> git push heroku app-despesas-pessoais-python
error: src refspec app-despesas-pessoais-python does not match any
error: failed to push some refs to 'https://git.heroku.com/radiant-gorge-67370.git'
我想下载https://git.heroku.com/app-despesas-pessoais-python.git,但是一个错误给予我没有把一些参考推到'https://git。heroku.com/radiant-gorge-67370.git'有没有办法连接到新的Heroku仓库地址?
2条答案
按热度按时间qyzbxkaa1#
要更改Git仓库的远程仓库,您需要更新
heroku
远程的Git远程URL。您可以通过以下步骤执行此操作:1.通过在终端中运行
git remote -v
命令检查当前远程URL。1.通过运行
git remote rm
heroku命令删除当前Heroku远程。1.通过运行
heroku git:remote -a app-despesas-pessoais-python
命令添加新的Heroku远程。1.通过运行命令
git remote -v
验证是否已正确添加新的遥控器。1.通过运行
git push heroku main
命令将您的更改推送到新的Heroku遥控器。shyt4zoc2#
步骤3 -添加新heroku remote
git remote set-url heroku https://git.heroku.com/app-despesas-pessoais-python.git
步骤4 -向存储库
git add .
添加更改步骤5 -提交对存储库
git commit -m [file]
的更改setp 6 -推送到repo
git push heroku main