I have two heroku accounts one using email abc@gmail.com and one using xyz@gmail.com
previously I deployed a rails app to my xyz@gmail.com account but now I want to deploy to abc@gmail.com account using the same machine. I logged in using my credentials for abc@gmail.com using the following command
heroku login
but when I do a git push it still uses xyz@gmail.com and gives the error message that xyz@gmail.com does not have access to the application's repository.
I have generated the ssh key for account abc@gmail.com and added it to heroku as well so technically it should work but it is not
please help