I did few changes in my toy project and pushed it to heroku with
but got this error:
1 | ! No such app as myOldApplicationName. |
3 | fatal: Could not read from remote repository. |
5 | Please make sure you have the correct access rights |
6 | and the repository exists. |
I googled a bit to see that this is due to my application rename in heroku website.
The previous name was "myOldApplicationName".
Then I searched my .git directory to see if there are references to the old application name.
I found it under "config".
2 | url = git@heroku.myOldApplicationName.git |
Edit it with your new application to fix the issue.
2 | url = git@heroku.com:myNewApplicationName.git |