Why do i get “error: failed to push some refs”?

前端 未结 5 631
陌清茗
陌清茗 2020-12-31 11:59

I have a remote git repository and a local one that i work with. Whenever i do any changes locally, i push them to the remote. Then i sometime do a \"git commit\" on the rem

5条回答
  •  时光说笑
    2020-12-31 12:27

    I have also faced same error and wasted lots of time, Here is final solution.

    1. when use git push origin master then we get error so solution is to force push. so use second option. it worked for me.

    2. git push origin master --force

提交回复
热议问题