skip to Main Content
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


  1. Chosen as BEST ANSWER

    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


  2. 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:

    1. Check the current remote URL by running the command git remote -v in your terminal.

    2. Remove the current Heroku remote by running the command git remote rm heroku.

    3. Add the new Heroku remote by running the command heroku git:remote -a app-despesas-pessoais-python.

    4. Verify that the new remote has been added correctly by running the command git remote -v.

    5. Push your changes to the new Heroku remote by running the command git push heroku main.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search