今天使用git init --bare时,push直接失败,看了这几行我就知道了:
error: insufficient permission for adding an object to repository database ./objects
fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
这是git库文件权限问题,还好一条命令解决了:
chomod -R 777 your-repository.git