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

前端 未结 5 638
陌清茗
陌清茗 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:35

    Here is another option.

    git reset --mixed origin/master
    git add .
    git commit -m "Your message"
    git push origin master
    

提交回复
热议问题