'git push heroku master error: Repository not found
I just tried pushing to heroku from github and this happened, anyone know how to fix this?
$ git push heroku master
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
Solution 1:[1]
When I encountered this issue I just deleted this line of code from the .git/config file then I tried repushing to heroku(git push heroku master).
[remote "heroku"]
url = https://git.heroku.com/dry-bastion-47289.git
fetch = +refs/heads/*:refs/remotes/heroku/*
Solution 2:[2]
For the easy solution remove the existing heroku git repo and recreate it.
git remote rm heroku
and then recreate it
heroku create
and later if you want to rename
heroku rename <name of your app>
Solution 3:[3]
Replaced the Heroku generated app name with our app name in the [remote "heroku"] section of the config file
[remote "heroku"]
url = https://git.heroku.com/[your_app_name].git
fetch = +refs/heads/*:refs/remotes/heroku/*
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Abdul Basit |
| Solution 3 | Rich |
