Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我git gc在我拥有的存储库上运行时,它说
git gc
fatal: failed to write ref-pack file error: failed to run pack-refs
这个错误是什么意思,我该如何解决?
该.git目录必须可由您的用户写入,并且您的存储设备上必须有足够的可用空间。
.git
当 Git 创建一个新包时,它首先创建新包,并在验证其正确性后删除旧包以及新打包的松散对象。IOW 您必须至少拥有对象数据库的当前大小作为可用空间(简化)。