PS C:.devdespesas-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:.devdespesas-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:.devdespesas-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:.devdespesas-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'
I want to deply to https://git.heroku.com/app-despesas-pessoais-python.git but a erro give me out
failed to push some refs to ‘https://git.heroku.com/radiant-gorge-67370.git’
Is there a way to connect to the new Heroku repository address?
2
Answers
step 3 - Add new heroku remote
git remote set-url heroku https://git.heroku.com/app-despesas-pessoais-python.git
step 4 - Add changes to the repository
git add .
step 5 - Commit changes to the repository
git commit -m [file]
setp 6 - Push to repo
git push heroku main
To change the remote repository for your Git repository, you need to update the Git remote URL for the
heroku
remote. You can do this with the following steps:Check the current remote URL by running the command
git remote -v
in your terminal.Remove the current Heroku remote by running the command
git remote rm
heroku.Add the new Heroku remote by running the command
heroku git:remote -a app-despesas-pessoais-python
.Verify that the new remote has been added correctly by running the command
git remote -v
.Push your changes to the new Heroku remote by running the command
git push heroku main
.