Tôi gặp lỗi git: "không đủ quyền để thêm một đối tượng vào cơ sở dữ liệu kho lưu trữ .git / objects" mỗi khi tôi thực hiện "git pull origin development".
remote: Counting objects: 70, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 42 (delta 35), reused 42 (delta 35)
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed
.git/objectstệp. Có vẻ như bạn có thể đã sử dụng nhầm sudovào một thời điểm nào đó trong quá khứ và trao quyền sở hữu rootthay vì cho chính mình.
.gitlà một thư mục tồn tại ở cơ sở của mỗi git repo.