由于 /.git 的物件目錄上的檔案,我在 git push 上遇到問題終端顯示以下訊息:
Enumerating objects: 38, done.
Counting objects: 100% (38/38), done.
Delta compression using up to 8 threads
Compressing objects: 100% (21/21), done.
Writing objects: 100% (22/22), 14.40 KiB | 921.00 KiB/s, done.
Total 22 (delta 17), reused 0 (delta 0), pack-reused 0
error: unable to write file ./objects/ec/3a800eea2d9c0fd32db2d5943c2c059ab79b10: Permission denied
To ssh://mysshAdress.git
! [remote rejected] feat/ficha-28-09-wtdb -> feat/ficha-28-09-wtdb (unable to migrate objects to permanent storage)
error: failed to push some refs to 'ssh://mysshAdress.git'
我以前從未見過這種情況,它造成了一個大問題。
有沒有人經歷過這個?tks
uj5u.com熱心網友回復:
error: unable to write file
該錯誤訊息沒有前綴remote:,這意味著磁盤空間或權限問題在您身邊,在您的本地計算機上。
根據您的作業系統,檢查與您的.git./objects/檔案夾關聯的權限/ACL,并查看您是否需要對所述 ACL 進行 chmod/修改。
確保您的本地存盤庫不在同步檔案夾中(DropBox、OneDrive、...)
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/515210.html
標籤:混帐
