I am running the following commands and get fatal: remote heroku already exists.
error.
I dont know what is wrong here, it used to work without errors before.
git init
git add .
git commit -m 'Initial commit'
git remote add heroku [email protected]:myapp.git
Deleting remote branches To delete a remote branch, you can't use the git branch command. Instead, use the git push command with --delete flag, followed by the name of the branch you want to delete. You also need to specify the remote name ( origin in this case) after git push .
Open .git/config, you will find
[remote "heroku"]
url = [email protected]:xxx.git
fetch = +refs/heads/*:refs/remotes/heroku/*
Change xxx to the app name you want to push. Then
git push heroku master
It works for me. You can have a try.
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