1
我通過生產服務器上的post-receive鉤子來部署Laravel應用程序。但是,在寫出工作樹的路徑時,我犯了一個錯誤。推後,我收到以下消息:錯誤的混帳推送後,'一切都是最新的'阻止推動任何東西
remote: hooks/post-receive: 1: hooks/post-receive: !#/bin/sh: not found
remote: fatal: Not a git repository: '/path/with/typosgoeshere'
它說,它已經計數,壓縮,並寫入169個對象(三角洲26),這是正確的有問題的項目。但是,由於錯誤,實際上沒有任何內容被推送到服務器。此外,當我現在嘗試執行git push production master
時,它只是返回「最新的所有內容」。正如我在其他地方所看到的,我嘗試了git reset --hard
,但那沒有做任何事情。