首先是你的項(xiàng)目中有和和歷史不符的東西?
Push rejected: Push to origin/master was rejected?
推拒絕:推送到起源/主人被拒絕?
直接是解決辦法,直接打開你要上傳代碼的文件夾位置鼠標(biāo)右鍵git Bash Here然后直接下面兩行命令解決問題
git pull origin master –allow-unrelated-histories?
git push -u origin master -f
首先是你的項(xiàng)目中有和和歷史不符的東西?
Push rejected: Push to origin/master was rejected?
推拒絕:推送到起源/主人被拒絕?
直接是解決辦法,直接打開你要上傳代碼的文件夾位置鼠標(biāo)右鍵git Bash Here然后直接下面兩行命令解決問題
git pull origin master –allow-unrelated-histories?
git push -u origin master -f