Skip to content

Git push fails: Refusing to delete current branch #21597

Discussion options

You must be logged in to vote

Thank you! :slight_smile:

I was thinking about this last night. I know where you’re going, and you’re absolutely right! This problem is because I set the remote branch as a mirror. I’m not sure what that does in the git world, but it seems to not do what I want.

Removing and re-adding the remote without the mirror option gets me past this error (but on to others unfortunately).

Interestingly, git branch -r did not return any output. Perhaps this is also because of the mirror option, but it is technically incorrect in my opinion, because there is a remote source set up.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants