1. 程式人生 > >git丨Push rejected: Push to origin/master was rejected

git丨Push rejected: Push to origin/master was rejected

true com pull tor 出現 解決 過程 master ava

最近在使用git,push代碼的過程中,遇到如下問題:

技術分享圖片

解決辦法,執行git命令如下:

git pull origin master --allow-unrelated-histories

 出現下圖信息,說明成功解決,重新push即可;

 技術分享圖片

git丨Push rejected: Push to origin/master was rejected