idea中,發(fā)布項(xiàng)目到OSChina的Git中,當(dāng)時(shí)按照這樣的流程添加Git,然后push,提示:push to origin/master war rejected"。
image
image
解決方案如下:
1.切換到自己項(xiàng)目所在的目錄,右鍵選擇GIT BASH Here
2.在terminl窗口中依次輸入命令:
git pull
git pull origin master
git pull origin master --allow-unrelated-histories
3.在idea中重新push自己的項(xiàng)目,成功?。?!