Written by marcelpetrick
on October 30, 2016
issue:
1 2 3 4 5 6 |
$ git push origin --delete master Username for 'https://github.com': marcelpetrick Password for 'https://marcelpetrick@github.com': To https://github.com/marcelpetrick/PiCamGifForTumblr.git ! [remote rejected] master (refusing to delete the current branch: refs/heads/master) error: failed to push some refs to 'https://github.com/marcelpetrick/PiCamGifForTumblr.git' |
solution:
- create a fake branch and push it
- go to
github > $your_repo > settings > branches > default branch
and make the fake branch the current one - delete master
- push new master
- revert the default branch
Leave a Reply
You must be logged in to post a comment.