Git push onto heroku is pointing to a non-existing git repository.
git.heroku.com/secure-reef-1722.git
this is the repository created when we ran heroku create command.
But when we run a 'push' command ($ git push heroku master), it says
remote: ! No such app as boiling-inlet-6957. fatal: repository 'https://git.heroku.com/boiling-inlet-6957.git/' not found
Also we are not able to see the new repository when we run $ git remote -v
heroku https://git.heroku.com/boiling-inlet-6957.git (fetch) heroku https://git.heroku.com/boiling-inlet-6957.git (push) origin [email protected]:coderz$/toy_app.git (fetch) origin [email protected]:coderz$/toy_app.git (push)
Now we are unable to push files to the new heroku git repository (git.heroku.com/secure-reef-1722.git)
Kindly help us out. Thanks in advance.
Complete sequence of commands
coderz$:~/workspace/toy_app (master) $ heroku create
Creating secure-reef-1722... done, stack is cedar-14
https://secure-reef-1722.herokuapp.com/ | https://git.heroku.com/secure-reef-1722.git
coderz$:~/workspace/toy_app (master) $ git push heroku master
remote: ! No such app as boiling-inlet-6957.
fatal: repository 'https://git.heroku.com/boiling-inlet-6957.git/' not found
coderz$:~/workspace/toy_app (master) $ git remote -v
heroku https://git.heroku.com/boiling-inlet-6957.git (fetch)
heroku https://git.heroku.com/boiling-inlet-6957.git (push)
origin [email protected]:coderz$/toy_app.git (fetch)
origin [email protected]:coderz$/toy_app.git (push)
coderz$:~/workspace/toy_app (master) $
To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your heroku remote. For example: $ git push heroku main Initializing repository, done.
You can now push your project to GitHub and it will be automatically deployed to Heroku henceforth.
Also note that Heroku should not be considered a git hosting. It means that it's extremely uncommon to perform a git pull from Heroku. Instead, you should use a git hosting (such as GitHub or BitBucket) to store your repository and only perform push to Heroku to deploy the application.
Try to re-add the remote url.
// Check for the current url
git remote -v
// remove remote url
git remote rm heroku
// re-add the remote url
git remote add heroku [email protected]:boiling-inlet-6957.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With