I am not able to push on git?

后端 未结 6 859
傲寒
傲寒 2020-12-24 15:05

git push origin master shows an error

failed to push some refs to \'git@github.com:xyz/abc.git\' To prevent you from losin

6条回答
  •  臣服心动
    2020-12-24 15:58

    If you are getting this error and your .git/config file is just fine then go through these steps (this is a common problem with a submodule in git repos - again do this from the submodule dir)

    1. git checkout master
    2. git pull
    3. (merge happens in background)
    4. git push

提交回复
热议问题