delete master error(git push origin :master)
2014-07-11 12:04
477 查看
Allgoodsofar.Wenextwanttodeletethebranchongithub.However,ifwedothisthenaiveway:
gitpushorigin:masterwejustgetanerrorlikethis:
remote:error:refusingtodeletethecurrentbranch:refs/heads/master Togit@github.com:matthew-brett/datarray.git ![remoterejected]master(deletionofthecurrentbranchprohibited) error:failedtopushsomerefsto'git@github.com:matthew-brett/datarray.git'Thatisbecausegithubislookingatthemasterbranchtoprovidethewebcontentwhenyoubrowsethatrepository.Sowefirsthavetomakegithublookatourplaceholderbranchinstead,thendeletemaster.Firstpushuptheplaceholderbranch:
gitcheckoutplaceholder#ifnotonplaceholderalready gitpushoriginplaceholderThensetplaceholdertobethegithubdefaultbranch.Gotothemaingithubpageforyourforkedrepository,andclickonthe“Admin”button.
gitpushorigin:masterand-nomasterbranch...
相关文章推荐
- Git Push:error: Couldn't set refs/remotes/origin/master;error: update_ref failed for ref 'refs/remot
- 【已解决】github中git push origin master出错:error: failed to push some refs to
- 解决本地项目上传到github时$git push -u origin master error failed to push some refs...等错误
- 【已解决】github中git push origin master出错:error: failed to push some refs to
- github中git push origin master出错:error: failed to push some refs to
- git push origin master出错:error: failed to push some refs to
- Git - git push origin master 报错的解决方法
- git push origin master和git push有什么区别?
- git push origin master、git pull出现如下错误
- Git发现git push origin master 报错的解决方法
- git push origin master:master
- Git -- git push -u origin master
- git push错误 remote: error: refusing to update checked out branch: refs/heads/master 解决方式
- git push origin master、git pull出现如下错误
- IDEA使用Git出现push to origin/master was rejected错误解决方案
- Push to origin/master was rejected (Git提交错误)
- 解决 git 中【git push origin master】失败的问题
- $ git push -u origin master ssh_exchange_identification: read: Software caused ....
- $git push origin master时如何解决failed to push some refs to git问题
- git push origin与git push -u origin master的区别