src refspec 'refs/heads/dev_xxx分支xxx' does not match any existing object (-1)

src refspec 'refs/heads/dev_Rock' does not match any existing object (-1)

在 Xcode 上克隆 GitLab 的代码,然后修改提交,如图:

src refspec 'refs/heads/dev_xxx分支xxx' does not match any existing object (-1)_第1张图片

选择的分支是 Origin/dev_Rock 结果报错:如下:

src refspec 'refs/heads/dev_xxx分支xxx' does not match any existing object (-1)_第2张图片

提示该分支不存在可是 实际在GitLab 上是有该分支的

解决办法:
需要在Xcode 上自行创建的

src refspec 'refs/heads/dev_xxx分支xxx' does not match any existing object (-1)_第3张图片
src refspec 'refs/heads/dev_xxx分支xxx' does not match any existing object (-1)_第4张图片
src refspec 'refs/heads/dev_xxx分支xxx' does not match any existing object (-1)_第5张图片

再次往该分支上就可以解决了

你可能感兴趣的:(src refspec 'refs/heads/dev_xxx分支xxx' does not match any existing object (-1))