我試圖推動本地更改:混帳推--force到遠程服務器失敗
git push all
「全」是指在GitHub和遠程服務器回購 - 在我的.git /配置:
[remote "all"]
url = [email protected]:...myrepo.git
url = ssh://[email protected]/myrepo.git/
原本它被假定沒有什麼應該在服務器上手動更改,但最終確實發生了。但是服務器上的更改是非實質性的,我想覆蓋它們以具有本地回購的完全副本。所以,現在我不能推到遠程服務器獲取一個錯誤:
remote: error: Your local changes to the following files would be overwritten by merge:
remote: Please, commit your changes or stash them before you can merge.
我所知以前的答案類似的問題,但遺憾的是「混帳推起源--force所有」不工作,拋同樣的錯誤
請幫忙!提前致謝!
拉上服務器工作,非常感謝您的幫助! – funkifunki
git fetch更安全.. –
順便說一句,我決定再次清理,所以,我從github上'git clone --bare'。一切似乎都沒有問題,直到下面的推到appsrv讓我感到吃驚:「無法打開.git/FETCH_HEAD:權限被拒絕」。我應該給寫入訪問.git?我不認爲這是好的..此外,我以前沒有這樣做,這不是一個問題.. – funkifunki