While pushing code in repository i am getting error like
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.
and the remote origins are correct. How can i solve this ?
Cloning just means you can see the repository. To be allowed to push, normally you need RSA key authentication. Your first error
looks like you haven't provided a key to the repo admin. Is this a project where you're supposed to have write permissions? Normally in open source or not-your-own projects, you probably should NOT have them.
If this is a public project, usually you have your cloned repository and you just make pull requests that the project admin checks. More about pull request workflow.