push to origin/master was rejected錯誤解決方案

idea中,發佈項目到OSChina的Git中,當時按照這樣的流程添加Git,而後push,提示:push to origin/master war rejected"。git

 

解決方案以下:ide

1.切換到本身項目所在的目錄,右鍵選擇GIT BASH Here,Idea中可以使用Alt+F12idea

2.在terminl窗口中依次輸入命令:spa

git pull.net

git pull origin masterblog

git pull origin master --allow-unrelated-historiesit

3.在idea中從新push本身的項目,成功!!!ast

--------------------- 做者:奔跑的董兒 來源:CSDN 原文:https://blog.csdn.net/a137151062/article/details/78820806?utm_source=copy 版權聲明:本文爲博主原創文章,轉載請附上博文連接!im

我TM如今都不知道爲毛項目

相關文章
相關標籤/搜索