我遇到了這個問題,無論是一個新的克隆,重新安裝git擴展,甚至刪除本地存儲庫。任何幫助?完整的錯誤日誌是這樣的Git錯誤:無法設置裁判/頭/主
git push --recurse-submodules=check --progress "origin" refs/heads/master:refs/heads/master
Counting objects: 133, done.
Delta compression using up to 4 threads.
Total 94 (delta 77), reused 0 (delta 0)
error: Couldn't set refs/heads/master
To M:/Madsanda Dev
! [remote rejected] master -> master (failed to write)
error: failed to push some refs to 'M:/remote folder'
Done
我發現這裏的唯一事情是
git push --recurse-submodules=check --progress "origin" refs/heads/master:refs/heads/master
,通常是
git push --recurse-submodules=check --progress "origin" master:master
請指點,謝謝。
嗯,這確實讓我推,但其他人不拉我的更新文件,我也不能拉別人更新。 – RRttcc1234