I’m trying to set my system up so that I can publish to github from terminal, but I can’t get a git push to go through.
The error is: ! [remote rejected] main (refusing to delete the current branch: refs/heads/main)
I wonder why push is trying to delete the branch? I guess maybe it’s trying to delete the current branch so it can upload the new one, but yikes.
I’ve followed a few different tutorials to set everything up, and I think it’s set up right. Everything to this point works fine. I’ve looked around and read a few things, but none of it seems to apply to my situation. Most of it is about not being able to delete the branch, which is not what I’m trying to do anyway.
So what’s the trick to be able to push my changes to github?