Currently I develop a Django application, which I've deployed on Heroku.
intention
I just wanted to switch from master to main.
Before I've unfortunately done:
git push heroku master
That's why I have two different remote branches now (heroku/main and heroku/master):
(HEAD -> main, heroku/master, heroku/main)
What I've tried
To delete the heroku/master I've tried the following (which didn't work):
git branch -d heroku/master
git branch -d master
git branch -d heroku:master
heroku git branch -d heroku/master
git remote rm heroku/master
What worked (kind of)
Finally I've removed the complete remote using
git remote rm heroku
Now I don't see the remote on the command line anymore ((HEAD -> main)) But interestingly the app is still available online and in the heroku dashboard. (Now I am going to figure out how to work with the heroku remote again in the command line)
But I wonder
Isn't there a way to delete the above mentioned heroku/master branch (which is actually just a duplicate of the heroku/main) without removing the complete remote?