git push

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
原文地址:https://www.cnblogs.com/bneglect/p/11404623.html