在存储库中推送代码时,我收到如下错误
nbmacmini9:bmp-ios afsarunnisa$ git push origin master
fatal: protocol error: expected sha/ref, got '
----------------------------------------------
The git:// url is read-only. Please see http://scm.company.com/bmp/bmp-ios for the push url, if you're a committer.远方的起源是正确的。我该如何解决这个问题呢?
发布于 2015-08-14 16:29:43
克隆只是意味着您可以看到存储库。要被允许推送,通常您需要RSA密钥身份验证。你的第一个错误
应为sha/ref,已获取‘
看起来您还没有提供repo管理员的密钥。这是一个你应该有写权限的项目吗?通常在开源或非您自己的项目中,您可能不应该拥有它们。
如果这是一个公共项目,通常您有克隆的存储库,您只需发出项目管理员检查的拉取请求即可。More about pull request workflow。
https://stackoverflow.com/questions/32004356
复制相似问题