git push

人盡茶涼 提交于 2019-11-28 10:21:30

git clone 远程的master分支,提交的时候想要提交到bneglect分支。报错:

 src refspec bneglect does not match any. error: failed to push some refs to 'https://code.aliyun.com'//后面的地址没复制全,不重要

 

这是因为不是提交到远程的master分支,如果是master往非master提交的时候,要写明,是哪到哪。或者说本地分支bneglect 提交到远程非bneglect分支

要这样写:

git push origin master:bneglect

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!